mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
lspkind: init plugin
This commit is contained in:
parent
c320be04c8
commit
4cb8fc4feb
5 changed files with 123 additions and 40 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue