fixes editing and keybindings

This commit is contained in:
Dennis 2026-02-06 10:58:18 +01:00
parent 5dd67bbedf
commit fe98bea0f1
2 changed files with 25 additions and 1 deletions

View file

@ -3,7 +3,9 @@
{
plugins.sleuth.enable = true;
plugins.nvim-surround.enable = true;
plugins.flash.enable = true;
plugins.flash = {
enable = true;
};
plugins.blink-pairs = {
enable = true;
@ -61,5 +63,13 @@
"TextYankPost"
];
}
{
event = [ "BufReadPost" ];
callback.__raw = /* lua */ ''
function()
vim.keymap.set(" n ", " <CR> ", " <CR> ", { buffer = true })
end
'';
}
];
}

View file

@ -116,5 +116,19 @@
action = "<cmd>close<cr>";
options.desc = "Delete window only";
}
{
mode = [
"n"
"x"
"o"
];
action.__raw = /* lua */ ''
function()
if vim.bo.filetype ~= "qf" then
require("flash").jump()
end
end,
'';
}
];
}