fish: Add a helper to pipe command output to nvim

This commit is contained in:
Sanchayan Maity 2021-08-06 14:04:45 +05:30
parent e92cc8a823
commit 6af6dfa93a

View file

@ -318,6 +318,10 @@ function rgc --description "Search within a file with ripgrep with context"
rg --color always -C 10 --context-separator="---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" $argv | nvim -R +AnsiEsc rg --color always -C 10 --context-separator="---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" $argv | nvim -R +AnsiEsc
end end
function vo --description "Pipe a command output to neovim"
$argv | nvim -R
end
fzf_key_bindings fzf_key_bindings
starship init fish | source starship init fish | source