feat(nvim): add cmake and clangd lsp
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
0a3464bb12
commit
4f81012634
1 changed files with 21 additions and 0 deletions
|
@ -13,9 +13,30 @@ in
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
clang-tools
|
clang-tools
|
||||||
|
cmake-language-server
|
||||||
];
|
];
|
||||||
|
|
||||||
|
extraLuaConfig =
|
||||||
|
/*
|
||||||
|
lua
|
||||||
|
*/
|
||||||
|
''
|
||||||
|
local lsp = require('lspconfig');
|
||||||
|
local coq = require('coq');
|
||||||
|
|
||||||
|
lsp.cmake.setup(coq.lsp_ensure_capabilities({}));
|
||||||
|
|
||||||
|
lsp.clangd.setup(coq.lsp_ensure_capabilities({
|
||||||
|
handlers = require('lsp-status').extensions.clangd.setup(),
|
||||||
|
on_attach = function(_, bufnr)
|
||||||
|
require("clangd_extensions.inlay_hints").setup_autocmd()
|
||||||
|
require("clangd_extensions.inlay_hints").set_inlay_hints()
|
||||||
|
end,
|
||||||
|
}));
|
||||||
|
'';
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
|
vimPlugins.clangd_extensions-nvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue