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
|
@ -46,6 +46,9 @@ called.")
|
|||
:for "for"
|
||||
:return "return" :yield "yield")
|
||||
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'python-mode-hook #'+lsp|init))
|
||||
|
||||
(define-key python-mode-map (kbd "DEL") nil) ; interferes with smartparens
|
||||
(sp-local-pair 'python-mode "'" nil
|
||||
:unless '(sp-point-before-word-p
|
||||
|
@ -63,6 +66,7 @@ called.")
|
|||
|
||||
|
||||
(def-package! anaconda-mode
|
||||
:unless (featurep! +lsp)
|
||||
:hook python-mode
|
||||
:init
|
||||
(setq anaconda-mode-installation-directory (concat doom-etc-dir "anaconda/")
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
(package! conda))
|
||||
|
||||
;; Programming environment
|
||||
(when (package! anaconda-mode)
|
||||
(unless (featurep! +lsp)
|
||||
(package! anaconda-mode)
|
||||
(when (featurep! :completion company)
|
||||
(package! company-anaconda)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue