Mention how to enable LSP manually
For major modes whose :lang modules lack an +lsp flag.
This commit is contained in:
parent
1c954d46c2
commit
187ba0f66f
1 changed files with 10 additions and 0 deletions
10
docs/faq.org
10
docs/faq.org
|
@ -801,6 +801,16 @@ Doom supports LSP, but it is not enabled by default. To enable it, you must:
|
||||||
means. You can find a list of supported servers on [[https://github.com/emacs-lsp/lsp-mode#supported-languages][the lsp-mode project page]].
|
means. You can find a list of supported servers on [[https://github.com/emacs-lsp/lsp-mode#supported-languages][the lsp-mode project page]].
|
||||||
4. Run ~doom sync~ on the command line and restart Emacs.
|
4. Run ~doom sync~ on the command line and restart Emacs.
|
||||||
|
|
||||||
|
Some language modules may lack LSP support (either because it hasn't been
|
||||||
|
implemented yet or I'm not aware of it yet -- let us know!). To enable LSP for
|
||||||
|
these languages, add this to =$DOOMDIR/config.el=:
|
||||||
|
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(add-hook 'MAJOR-MODE-local-vars-hook #'lsp!)
|
||||||
|
;; Where =MAJOR-MODE= is the major mode you're targeting. e.g.
|
||||||
|
;; lisp-mode-local-vars-hook
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Package Management
|
* Package Management
|
||||||
** How do I install a package from ELPA?
|
** How do I install a package from ELPA?
|
||||||
See the "[[file:getting_started.org::*Installing packages][Installing packages]]" section of the [[file:getting_started.org][Getting Started]] guide.
|
See the "[[file:getting_started.org::*Installing packages][Installing packages]]" section of the [[file:getting_started.org][Getting Started]] guide.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue