Fix typing "#" moving to start of line
This commit is contained in:
21
config.nix
21
config.nix
@@ -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,6 +203,23 @@
|
|||||||
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>Dashboard<CR>";
|
action = "<Cmd>Dashboard<CR>";
|
||||||
|
|||||||
Reference in New Issue
Block a user