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

This commit is contained in:
amirrezaask 2020-08-08 15:00:36 +04:30
parent e202c1ec62
commit 5bcbfae1c4
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)