fixup! nim: refactor
This commit is contained in:
parent
79952251b4
commit
145f469ec1
1 changed files with 9 additions and 5 deletions
|
@ -23,11 +23,15 @@
|
|||
|
||||
(defun spacemacs//nim-setup-company ()
|
||||
"Conditionally setup company based on backend."
|
||||
(spacemacs|add-company-backends
|
||||
:backends (pcase nim-backend
|
||||
('lsp 'company-capf)
|
||||
('company-nim 'company-nimsuggest))
|
||||
:modes nim-mode nimscript-mode))
|
||||
(pcase nim-backend
|
||||
('lsp
|
||||
(spacemacs|add-company-backends ;; Activate lsp company explicitly to activate
|
||||
:backends company-capf ;; standard backends as well
|
||||
:modes nim-mode nimscript-mode))
|
||||
('company-nim
|
||||
(spacemacs|add-company-backends
|
||||
:backends company-nimsuggest
|
||||
:modes nim-mode nimscript-mode))))
|
||||
|
||||
(defun spacemacs//nim-setup-backend ()
|
||||
"Conditionally setup nim backend."
|
||||
|
|
Reference in a new issue