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
1 changed files with 4 additions and 0 deletions

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
end
function vo --description "Pipe a command output to neovim"
$argv | nvim -R
end
fzf_key_bindings
starship init fish | source