Add basic LSP support
Still needs to be documented, but includes support for the following languages: + C/C++/ObjC + Go + Java + Javascript + OCaml + PHP + Python + Ruby + Scala + Swift + HTML/CSS Relevant to #460, #716, #1186
This commit is contained in:
parent
d7308799f6
commit
cb923eadcc
25 changed files with 182 additions and 57 deletions
|
@ -20,7 +20,9 @@
|
|||
"gofmt"
|
||||
"goimports"))))
|
||||
|
||||
(add-hook 'go-mode-hook #'go-eldoc-setup)
|
||||
(if (featurep! +lsp)
|
||||
(add-hook 'go-mode-hook #'+lsp|init)
|
||||
(add-hook 'go-mode-hook #'go-eldoc-setup))
|
||||
|
||||
(map! :map go-mode-map
|
||||
:localleader
|
||||
|
@ -57,7 +59,8 @@
|
|||
|
||||
|
||||
(def-package! company-go
|
||||
:when (featurep! :completion company)
|
||||
:when (and (featurep! :completion company)
|
||||
(not (featurep! +lsp)))
|
||||
:after go-mode
|
||||
:config
|
||||
(set-company-backend! 'go-mode 'company-go)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue