fixes editing and keybindings
This commit is contained in:
parent
5dd67bbedf
commit
fe98bea0f1
2 changed files with 25 additions and 1 deletions
|
|
@ -3,7 +3,9 @@
|
||||||
{
|
{
|
||||||
plugins.sleuth.enable = true;
|
plugins.sleuth.enable = true;
|
||||||
plugins.nvim-surround.enable = true;
|
plugins.nvim-surround.enable = true;
|
||||||
plugins.flash.enable = true;
|
plugins.flash = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
plugins.blink-pairs = {
|
plugins.blink-pairs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -61,5 +63,13 @@
|
||||||
"TextYankPost"
|
"TextYankPost"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
event = [ "BufReadPost" ];
|
||||||
|
callback.__raw = /* lua */ ''
|
||||||
|
function()
|
||||||
|
vim.keymap.set(" n ", " <CR> ", " <CR> ", { buffer = true })
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -116,5 +116,19 @@
|
||||||
action = "<cmd>close<cr>";
|
action = "<cmd>close<cr>";
|
||||||
options.desc = "Delete window only";
|
options.desc = "Delete window only";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"x"
|
||||||
|
"o"
|
||||||
|
];
|
||||||
|
action.__raw = /* lua */ ''
|
||||||
|
function()
|
||||||
|
if vim.bo.filetype ~= "qf" then
|
||||||
|
require("flash").jump()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue