New answers tagged lsp-mode
0
votes
Accepted
Set up emacs LSP to also work with standalone files and scripts
I found the solution, thankfully it was rather simple:
(use-package lsp-mode
:hook (java-mode . lsp-deferred)
:commands (lsp lsp-deferred)
:config
(setq lsp-auto-guess-root t) ; This is the fix
(...
Top 50 recent answers are included
Related Tags
lsp-mode × 163lsp × 49
python × 16
lsp-ui × 15
spacemacs × 12
company-mode × 12
flycheck × 10
java × 8
rust × 7
doom × 5
golang × 5
clang × 5
init-file × 4
debugging × 4
use-package × 4
javascript × 4
ccls × 4
eglot × 4
tramp × 3
completion × 3
c++ × 3
directory-local-variables × 3
warning × 3
dap × 3
key-bindings × 2