forked from FG42/FG42
Remove go-eldoc since it's replaced by lsp
This commit is contained in:
parent
f0525a0135
commit
9ea6627587
|
@ -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)
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue