non important commit

This commit is contained in:
maxstrb 2025-11-22 12:03:33 +01:00
parent 2dc2799d2b
commit 7658f1a4a1
2 changed files with 23 additions and 2 deletions

View file

@ -39,6 +39,7 @@
options = { options = {
tabstop = 2; tabstop = 2;
expandtab = false;
autoindent = true; autoindent = true;
shiftwidth = 2; shiftwidth = 2;
}; };
@ -99,8 +100,8 @@
autopairs.nvim-autopairs.enable = true; autopairs.nvim-autopairs.enable = true;
autocomplete = { autocomplete = {
nvim-cmp.enable = false; nvim-cmp.enable = true;
blink-cmp.enable = true; blink-cmp.enable = false;
}; };
snippets.luasnip.enable = true; snippets.luasnip.enable = true;

View file

@ -77,6 +77,13 @@
} }
} }
def --env fzf-nvim [] {
let file = (fd -t f -L . | fzf --reverse --height 40% --border rounded --preview=("bat -p -P {}") --preview-window=border-left)
if $file != null and $file != "" {
nvim $file
}
}
$env.config.keybindings = ($env.config.keybindings | append { $env.config.keybindings = ($env.config.keybindings | append {
name: "fzf-cd" name: "fzf-cd"
modifier: "control" modifier: "control"
@ -89,6 +96,19 @@
} }
] ]
}) })
$env.config.keybindings = ($env.config.keybindings | append {
name: "fzf-nvim"
modifier: "control"
keycode: "char_e"
mode: "emacs"
event: [
{
send: "executehostcommand"
cmd: 'fzf-nvim'
}
]
})
''; '';
settings = { settings = {