Compare commits

..

2 Commits

Author SHA1 Message Date
0056a90ec1 Stop highlighting searches when pressing escape
Also prevents toggling between tabs when pressing escape
2025-09-19 14:16:29 -04:00
bbfe9a3f84 Fix typing "#" moving to start of line 2025-09-19 14:16:03 -04:00

View File

@@ -18,6 +18,10 @@
cindent = true; cindent = true;
# Same as default, but without "0#,", which prevents typing "#"
# from going to the start of the line
cinkeys = "0{,0},0),0],:,!^F,o,O,e";
signcolumn = "yes"; signcolumn = "yes";
}; };
@@ -199,7 +203,29 @@
poppler-utils # (pdfinfo) poppler-utils # (pdfinfo)
]; ];
autoCmd = [
{
# Reset cinkeys when editing c/c++ files
command = "setlocal cinkeys&";
pattern = [
"*.c"
"*.h"
"*.cpp"
"*.hpp"
];
event = [
"BufEnter"
"BufWinEnter"
];
}
];
keymaps = [ keymaps = [
{
action = "<Cmd>nohl<CR>";
key = "<Esc>";
mode = [ "n" ];
}
{ {
action = "<Cmd>Dashboard<CR>"; action = "<Cmd>Dashboard<CR>";
key = "<leader>d"; key = "<leader>d";