feat(nvf): add keymap to create file under cursor
This commit is contained in:
parent
a24480e871
commit
95146e2cdf
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,15 @@
|
|||
programs.nvf = {
|
||||
enable = true;
|
||||
settings.vim = {
|
||||
keymaps = [
|
||||
{
|
||||
desc = "Open the file path under the cursor, making the file if it doesn't exist.";
|
||||
key = "gf";
|
||||
mode = "n";
|
||||
action = ":cd %:p:h<CR>:e <cfile><CR>";
|
||||
silent = true;
|
||||
}
|
||||
];
|
||||
utility.yazi-nvim = {
|
||||
enable = true;
|
||||
mappings = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue