Compare commits

...

4 Commits

Author SHA1 Message Date
Jeremy Dormitzer
3869c8a615 Fix embark action xref-find-references 2022-04-13 14:22:04 -04:00
Jeremy Dormitzer
908222a1b9 Add a keybinding to open rustdocs in browser 2022-04-13 14:21:19 -04:00
Jeremy Dormitzer
bc85de1ad5 Add zsh-completions homebrew package 2022-04-13 14:21:07 -04:00
Jeremy Dormitzer
fcd0cb1f49 Remove other ulimit invocation 2022-04-13 14:20:49 -04:00
3 changed files with 11 additions and 3 deletions

View File

@ -96,6 +96,7 @@ targets."
(add-to-list 'embark-keymap-alist '(lsp-identifier . embark-lsp-identifier-actions)) (add-to-list 'embark-keymap-alist '(lsp-identifier . embark-lsp-identifier-actions))
(add-to-list 'embark-target-injection-hooks '(lsp-execute-code-action embark--ignore-target)) (add-to-list 'embark-target-injection-hooks '(lsp-execute-code-action embark--ignore-target))
(add-to-list 'embark-target-injection-hooks '(lsp-describe-thing-at-point embark--ignore-target))) (add-to-list 'embark-target-injection-hooks '(lsp-describe-thing-at-point embark--ignore-target)))
(add-to-list 'embark-target-injection-hooks '(xref-find-references embark--ignore-target))
:general :general
((emacs normal motion insert visual) "C-." #'embark-act) ((emacs normal motion insert visual) "C-." #'embark-act)
((emacs normal motion insert visual) "M-." #'embark-dwim) ((emacs normal motion insert visual) "M-." #'embark-dwim)

View File

@ -3,6 +3,9 @@
(use-package rust-mode (use-package rust-mode
:mode (("\\.rs\\'" . rust-mode)) :mode (("\\.rs\\'" . rust-mode))
:config :config
(add-hook 'rust-mode-hook 'lsp-deferred)) (add-hook 'rust-mode-hook 'lsp-deferred)
(with-eval-after-load 'lsp-rust
(general-def rust-mode-map
"C-c C-c C-d" 'lsp-rust-analyzer-open-external-docs)))
(provide 'init-rust) (provide 'init-rust)

View File

@ -113,8 +113,12 @@ alias kns="kubens"
alias kctx="kubectx" alias kctx="kubectx"
alias tf="terraform" alias tf="terraform"
# Up the ulimit # zsh-completions homebrew package
ulimit -S -n 4096 if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
# VTerm integration # VTerm integration
# Some of the most useful features in emacs-libvterm require shell-side # Some of the most useful features in emacs-libvterm require shell-side