feat(home:fish): add nvim telescope binding
This commit is contained in:
parent
803ecd462d
commit
17e2ecccdd
1 changed files with 7 additions and 5 deletions
|
|
@ -10,11 +10,13 @@
|
||||||
cfg = config.ooknet.shell.fish;
|
cfg = config.ooknet.shell.fish;
|
||||||
in {
|
in {
|
||||||
config = mkIf (cfg.enable || admin.shell == "fish") {
|
config = mkIf (cfg.enable || admin.shell == "fish") {
|
||||||
programs.fish.functions = {
|
programs.fish = {
|
||||||
|
functions = {
|
||||||
fish_user_key_bindings = ''
|
fish_user_key_bindings = ''
|
||||||
bind --preset -M insert \cf $EDITOR $FLAKE
|
bind --preset -M insert \cf nvim '+Telescope find_files' $FLAKE
|
||||||
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