aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/modes/init-lsp-mode.el
blob: a44c722194a92dc8be4e7ac2ccc78fe062333d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)