diff options
Diffstat (limited to '.emacs.d/modes/init-lsp-mode.el')
-rw-r--r-- | .emacs.d/modes/init-lsp-mode.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.emacs.d/modes/init-lsp-mode.el b/.emacs.d/modes/init-lsp-mode.el new file mode 100644 index 0000000..b5c391a --- /dev/null +++ b/.emacs.d/modes/init-lsp-mode.el @@ -0,0 +1,13 @@ +(use-package lsp-mode + :ensure t + :hook + ((go-mode . lsp-deferred) + (lsp-mode . lsp-enable-which-key-integration)) + :commands (lsp lsp-deferred) + :config + (evil-define-key 'normal lsp-mode-map + (kbd "gd") 'lsp-find-definition + (kbd "gr") 'lsp-find-references) + (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\.git\\'") + +(provide 'init-lsp-mode) |