mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-06-17 17:24:38 +02:00
feat: config rewrite (#1)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins = {
|
||||
lspkind.enable = true;
|
||||
cmp-nvim-lsp-signature-help.enable = true;
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
settings = {
|
||||
sources = [
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "nvim_lsp_signature_help"; }
|
||||
{ name = "path"; }
|
||||
{ name = "buffer"; }
|
||||
{ name = "dap"; }
|
||||
{ name = "blink-emoji"; }
|
||||
{ name = "blink-ripgrep"; }
|
||||
];
|
||||
mapping = {
|
||||
"<Tab>" = "cmp.mapping.select_next_item()";
|
||||
"<S-Tab>" = "cmp.mapping.select_prev_item()";
|
||||
"<C-j>" = "cmp.mapping.scroll_docs(4)";
|
||||
"<C-k>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-Space>" = "cmp.mapping.complete()";
|
||||
"<C-Esc>" = "cmp.mapping.close()";
|
||||
"<CR>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user