Defer lsp loading and disable indentation formatting

This commit is contained in:
Tobias Ostner 2024-10-29 10:20:28 +01:00
parent 48c728f2c0
commit 5ee01380af

View file

@ -365,14 +365,15 @@
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))
((python-mode python-ts-mode) . lsp-deferred)
(nix-mode . lsp-deferred)
((swift-mode swift-ts-mode) . lsp-deffered))
:commands lsp
:custom
(lsp-keep-workspace-alive nil)
(lsp-keymap-prefix "C-c l")
(lsp-enable-on-type-formatting nil)
(lsp-enable-indentation nil)
:config
(add-to-list 'lsp-language-id-configuration '(swift-ts-mode . "swift"))
(let ((lsp-sourcekit-executable (string-trim