optional lsp for c/c++ and swift

This commit is contained in:
nganhkhoa 2021-12-07 15:21:49 +00:00
parent 60b783b822
commit 766fd78e81

View File

@ -14,14 +14,14 @@
(lspconfig.rust_analyzer.setup {})
(lspconfig.gopls.setup {})
(lspconfig.denols.setup {})
(lspconfig.sourcekit.setup {})
(lspconfig.ccls.setup
{:init_options {:clang {:extraArgs ["-I/usr/local/include"
"-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"
"-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include"
"-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
"-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
"-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"]}}})
; (lspconfig.sourcekit.setup {})
; (lspconfig.ccls.setup
; {:init_options {:clang {:extraArgs ["-I/usr/local/include"
; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"
; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include"
; "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
; "-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
; "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"]}}})
(treesitter.setup {:ensure_installed ["c" "cpp" "python" "go" "rust" "javascript" "lua"]
:highlight {:enable true}