Tweak lsp-mode
This commit is contained in:
parent
a427c2bbe4
commit
4192960596
1 changed files with 11 additions and 4 deletions
|
|
@ -346,11 +346,18 @@
|
|||
|
||||
(use-package lsp-mode
|
||||
:hook
|
||||
((js-mode js-ts-mode js-jsx-mode) . lsp)
|
||||
((lsp-mode . lsp-diagnostics-mode)
|
||||
((js-mode
|
||||
js-ts-mode
|
||||
js-jsx-mode
|
||||
typescript-ts-mode
|
||||
tsx-ts-mode) . lsp-deferred)
|
||||
((python-mode python-ts-mode) . lsp)
|
||||
(nix-mode . lsp)
|
||||
((swift-mode swift-ts-mode) .lsp)
|
||||
((swift-mode swift-ts-mode) .lsp))
|
||||
:commands lsp
|
||||
:custom
|
||||
(lsp-keep-workspace-alive nil)
|
||||
:config
|
||||
(add-to-list 'lsp-language-id-configuration '(swift-ts-mode . "swift"))
|
||||
(let ((lsp-sourcekit-executable (string-trim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue