function rgf --description 'Search within a file with ripgrep'
rg --color always $argv | nvim -R +AnsiEsc
end