Remove go-eldoc since it's replaced by lsp

This commit is contained in:
Sameer Rahmani 2020-11-11 12:32:40 +00:00
parent f0525a0135
commit 9ea6627587
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,6 @@
(depends-on 'go-mode)
(depends-on 'go-add-tags)
(depends-on 'go-stacktracer)
(depends-on 'go-eldoc)
(depends-on 'gotest)
(depends-on 'exec-path-from-shell)

View File

@ -5,13 +5,15 @@
(defun fg42-go-hook ()
;; move to action
"Set's up emacs hooks and turn necessary modes on."
(lsp-register-custom-settings
'(("gopls.completeUnimported" t t)
("gopls.staticcheck" t t)))
(lsp)
(with-ability yas
(yas-minor-mode-on))
(setq-local company-backends '(company-capf company-dabbrev company-dabbrev-code))
(add-hook 'before-save-hook #'lsp-format-buffer t t)
(add-hook 'before-save-hook #'lsp-organize-imports t t)
(add-hook 'go-mode-hook 'go-eldoc-setup)
(local-set-key (kbd "M-.") #'godef-jump)
(local-set-key (kbd "M-*") 'pop-tag-mark))