mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)))
|
||||
|
Reference in New Issue
Block a user