Configure lsp mode
This commit is contained in:
parent
0eb9c8b5f7
commit
2c3281030e
1 changed files with 3 additions and 0 deletions
|
|
@ -360,6 +360,8 @@
|
||||||
(global-ligature-mode t))
|
(global-ligature-mode t))
|
||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
|
:bind (:map lsp-mode-map
|
||||||
|
("M-." . lsp-find-definition))
|
||||||
:hook
|
:hook
|
||||||
((lsp-mode . lsp-diagnostics-mode)
|
((lsp-mode . lsp-diagnostics-mode)
|
||||||
((js-mode
|
((js-mode
|
||||||
|
|
@ -373,6 +375,7 @@
|
||||||
:commands lsp
|
:commands lsp
|
||||||
:custom
|
:custom
|
||||||
(lsp-keep-workspace-alive nil)
|
(lsp-keep-workspace-alive nil)
|
||||||
|
(lsp-keymap-prefix "C-c l")
|
||||||
:config
|
:config
|
||||||
(add-to-list 'lsp-language-id-configuration '(swift-ts-mode . "swift"))
|
(add-to-list 'lsp-language-id-configuration '(swift-ts-mode . "swift"))
|
||||||
(let ((lsp-sourcekit-executable (string-trim
|
(let ((lsp-sourcekit-executable (string-trim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue