fish: neovim telescope alias init
This commit is contained in:
parent
acb87b6bb1
commit
b0cfbf184f
2 changed files with 3 additions and 2 deletions
|
|
@ -13,10 +13,11 @@ in {
|
||||||
lst = "${getExe eza} -T -L 5 --icons --group-directories-first";
|
lst = "${getExe eza} -T -L 5 --icons --group-directories-first";
|
||||||
du = "${getExe dust}";
|
du = "${getExe dust}";
|
||||||
gitroot = "cd (git rev-parse --show-toplevel)";
|
gitroot = "cd (git rev-parse --show-toplevel)";
|
||||||
|
gitedit = "cd (git rev-parse --show-toplevel); nvim -c 'Telescope find_files'; cd -";
|
||||||
};
|
};
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
f = "cd $FLAKE";
|
f = "cd $FLAKE";
|
||||||
fe = "$EDITOR $FLAKE";
|
fe = "$EDITOR (git rev-parse --show-toplevel) -c 'Telescope find_files'";
|
||||||
|
|
||||||
nswitch = "${getExe nh} os switch";
|
nswitch = "${getExe nh} os switch";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
functions = {
|
functions = {
|
||||||
fish_user_key_bindings = ''
|
fish_user_key_bindings = ''
|
||||||
bind --preset -M insert \cf nvim '+Telescope find_files' $FLAKE
|
bind --preset -M insert \cf gitedit
|
||||||
bind --preset -M insert \ec fzf_cd_widget
|
bind --preset -M insert \ec fzf_cd_widget
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue