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
|
@ -26,6 +26,9 @@
|
|||
(set-electric! '(ruby-mode enh-ruby-mode) :words '("else" "end" "elsif"))
|
||||
(set-repl-handler! '(ruby-mode enh-ruby-mode) #'inf-ruby)
|
||||
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'enh-ruby-mode-hook #'+lsp|init))
|
||||
|
||||
(after! company-dabbrev-code
|
||||
(add-to-list 'company-dabbrev-code-modes 'enh-ruby-mode nil #'eq)
|
||||
(add-to-list 'company-dabbrev-code-modes 'ruby-mode nil #'eq))
|
||||
|
@ -42,6 +45,7 @@
|
|||
|
||||
|
||||
(def-package! robe
|
||||
:unless (featurep! +lsp)
|
||||
:hook (enh-ruby-mode . robe-mode)
|
||||
:config
|
||||
(set-repl-handler! 'enh-ruby-mode #'robe-start)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue