setup ccls

This commit is contained in:
nganhkhoa 2021-07-15 02:46:46 +07:00
parent e70aa37fc0
commit 30247d1468

View File

@ -14,6 +14,17 @@
(lspconfig.gopls.setup {})
(lspconfig.denols.setup {})
(global clang_args (if has('mac')
["-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.ccls.setup
{:init_options {:clang {:extraArgs clang_args}}})
(treesitter.setup {:ensure_installed ["c" "cpp" "python" "go" "rust" "javascript" "lua"]
:highlight {:enable true}
:indent {:enable true}})