lspkind: init plugin

This commit is contained in:
Pedro Alves 2022-11-10 18:22:45 +00:00
parent c320be04c8
commit 4cb8fc4feb
5 changed files with 123 additions and 40 deletions

View file

@ -154,21 +154,21 @@
nvim-cmp = {
formatting = {
format = ''
require("lspkind").cmp_format({
mode="symbol",
maxwidth = 50,
ellipsis_char = "..."
})
'';
require("lspkind").cmp_format({
mode="symbol",
maxwidth = 50,
ellipsis_char = "..."
})
'';
};
auto_enable_sources = true;
snippet = {
expand = ''
function(args)
require("luasnip").lsp_expand(args.body)
end
'';
function(args)
require("luasnip").lsp_expand(args.body)
end
'';
};
enable = true;
sources = [
@ -200,6 +200,17 @@
# extraConfigLua = (builtins.readFile ./nvim-extra-lua.lua);
};
lspkind = build {
plugins = {
lsp = {
enable = true;
servers.clangd.enable = true;
};
nvim-cmp.enable = true;
lspkind.enable = true;
};
};
};
})) // {
nixosConfigurations.nixvim-machine = nixpkgs.lib.nixosSystem {