nixbook: gruvbox theme and fix nixvim cmp

This commit is contained in:
Tristan 2024-10-02 00:37:09 +01:00
parent ea68950497
commit 29bd3b69f8
3 changed files with 38 additions and 14 deletions

View file

@ -59,11 +59,11 @@
'';
}
{
key = "<C-n>";
key = "<C-Tab>";
action = "<CMD>tabnext<CR>";
}
{
key = "<C-p>";
key = "<C-S-Tab>";
action = "<CMD>tabprev<CR>";
}
{
@ -201,11 +201,29 @@
cmp = {
enable = true;
autoEnableSources = true;
settings = {
mapping = {
"<C-Space>" = "cmp.mapping.complete()";
"<C-u>" = "cmp.mapping.scroll_docs(4)";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<C-p>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<C-n>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
};
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
cmp-nvim-lsp.enable = true;
cmp-nvim-lsp-signature-help.enable = true;
cmp-path.enable = true;
cmp-buffer.enable = true;
trouble.enable = true;
gitsigns.enable = true;
git-worktree = {
@ -246,6 +264,7 @@
oil.enable = true;
autoclose.enable = true;
ts-autotag.enable = true;
guess-indent.enable = true;
};