non important commit
This commit is contained in:
parent
2dc2799d2b
commit
7658f1a4a1
2 changed files with 23 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue