kekl
This commit is contained in:
@ -16,110 +16,111 @@ let
|
||||
in
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
|
||||
settings = {
|
||||
mapping = {
|
||||
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||
"<C-Space>" = "cmp.mapping.complete()";
|
||||
"<C-e>" = "cmp.mapping.close()";
|
||||
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})";
|
||||
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})";
|
||||
"<CR>" = "cmp.mapping.confirm({ select = false, behavior = cmp.ConfirmBehavior.Replace })";
|
||||
};
|
||||
|
||||
preselect = "cmp.PreselectMode.None";
|
||||
|
||||
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
||||
|
||||
sources = [
|
||||
{
|
||||
name = "nvim_lsp";
|
||||
priority = 1000;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nvim_lsp_signature_help";
|
||||
priority = 1000;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nvim_lsp_document_symbol";
|
||||
priority = 1000;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "treesitter";
|
||||
priority = 850;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
settings = {
|
||||
mapping = {
|
||||
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||
"<C-Space>" = "cmp.mapping.complete()";
|
||||
"<C-e>" = "cmp.mapping.close()";
|
||||
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})";
|
||||
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})";
|
||||
"<CR>" = "cmp.mapping.confirm({ select = false, behavior = cmp.ConfirmBehavior.Replace })";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "luasnip";
|
||||
priority = 750;
|
||||
}
|
||||
{
|
||||
name = "buffer";
|
||||
priority = 500;
|
||||
|
||||
preselect = "cmp.PreselectMode.None";
|
||||
|
||||
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
||||
|
||||
sources = [
|
||||
{
|
||||
name = "nvim_lsp";
|
||||
priority = 1000;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nvim_lsp_signature_help";
|
||||
priority = 1000;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "nvim_lsp_document_symbol";
|
||||
priority = 1000;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "treesitter";
|
||||
priority = 850;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "path";
|
||||
priority = 300;
|
||||
}
|
||||
{
|
||||
name = "cmdline";
|
||||
priority = 300;
|
||||
}
|
||||
{
|
||||
name = "git";
|
||||
priority = 250;
|
||||
}
|
||||
{
|
||||
name = "calc";
|
||||
priority = 150;
|
||||
}
|
||||
{
|
||||
name = "emoji";
|
||||
priority = 100;
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "luasnip";
|
||||
priority = 750;
|
||||
}
|
||||
{
|
||||
name = "buffer";
|
||||
priority = 500;
|
||||
option = {
|
||||
inherit get_bufnrs;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "path";
|
||||
priority = 300;
|
||||
}
|
||||
{
|
||||
name = "cmdline";
|
||||
priority = 300;
|
||||
}
|
||||
{
|
||||
name = "git";
|
||||
priority = 250;
|
||||
}
|
||||
{
|
||||
name = "calc";
|
||||
priority = 150;
|
||||
}
|
||||
{
|
||||
name = "emoji";
|
||||
priority = 100;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
friendly-snippets.enable = true;
|
||||
luasnip.enable = true;
|
||||
friendly-snippets.enable = true;
|
||||
luasnip.enable = true;
|
||||
|
||||
lspkind = {
|
||||
enable = true;
|
||||
cmp = {
|
||||
lspkind = {
|
||||
enable = true;
|
||||
menu = {
|
||||
buffer = "";
|
||||
calc = "";
|
||||
cmdline = "";
|
||||
codeium = "";
|
||||
emoji = "";
|
||||
git = "";
|
||||
luasnip = "";
|
||||
neorg = "";
|
||||
nvim_lsp = "";
|
||||
nvim_lua = "";
|
||||
path = "";
|
||||
spell = "";
|
||||
treesitter = "";
|
||||
cmp = {
|
||||
enable = true;
|
||||
menu = {
|
||||
buffer = "";
|
||||
calc = "";
|
||||
cmdline = "";
|
||||
codeium = "";
|
||||
emoji = "";
|
||||
git = "";
|
||||
luasnip = "";
|
||||
neorg = "";
|
||||
nvim_lsp = "";
|
||||
nvim_lua = "";
|
||||
path = "";
|
||||
spell = "";
|
||||
treesitter = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user