More nixvim options

This commit is contained in:
Jordan Holt 2024-04-14 19:29:38 +01:00
parent 42429704cb
commit c855dc7c07
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -27,6 +27,12 @@ in {
splitbelow = true; splitbelow = true;
splitright = true; splitright = true;
undofile = true; undofile = true;
updatetime = 100;
};
globals = {
mapleader = ",";
maplocalleader = ",";
}; };
clipboard = { clipboard = {
@ -74,6 +80,11 @@ in {
{ name = "path"; } { name = "path"; }
{ name = "buffer"; } { name = "buffer"; }
]; ];
mapping = {
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<CR>" = "cmp.mapping.confirm({ select = true })";
};
}; };
plugins.telescope = { plugins.telescope = {
@ -102,6 +113,7 @@ in {
enable = true; enable = true;
highlightDefinitions = { highlightDefinitions = {
enable = true; enable = true;
clearOnCursorMove = false;
}; };
}; };