Merge branch 'local-company-backends-for-go' into 'master'

use buffer-local variable for company-backends in go extension

See merge request FG42/FG42!35
This commit is contained in:
AmirrezaAsk 2020-08-08 13:54:47 +00:00
commit b00a3b0896
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@
"Set's up emacs hooks and turn necessary modes on."
(lsp)
(with-ability yas
(yas-minor-mode-on))
(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)