A few minor tweaks while I have this open

This commit is contained in:
Alex Davies 2024-08-07 11:45:37 -03:00
parent b25386163e
commit aa51a62839

View File

@ -126,17 +126,18 @@
''; '';
}; };
sources = [ sources = [
{name = "path";} {name = "copilot";}
{name = "nvim_lsp";} {name = "nvim_lsp";}
{name = "path";}
{name = "buffer";} {name = "buffer";}
{name = "treesitter";} {name = "treesitter";}
{name = "copilot";}
{name = "bash";} {name = "bash";}
]; ];
}; };
}; };
plugins.indent-blankline.enable = true; plugins.indent-blankline.enable = true;
plugins.lsp-format.enable = true; plugins.lsp-format.enable = true;
plugins.commentary.enable = true;
plugins.lsp = { plugins.lsp = {
enable = true; enable = true;
}; };
@ -193,6 +194,13 @@
globals.mapleader = " "; globals.mapleader = " ";
keymaps = [ keymaps = [
{
#Clear the search buffer when I press esc twice
mode = ["n" "t"];
key = "<esc><esc>";
options = { noremap = true; desc = "Clear search"; };
action = ":nohlsearch<cr>";
}
{ {
mode = ["n" "t"]; mode = ["n" "t"];
key = "<C-a>c"; key = "<C-a>c";