From 241894eb50e0602e3cf4b810c03e7b2e681933cb Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 4 Oct 2021 11:50:53 +0530 Subject: [PATCH] fish: Use nvr instead of floaterm nvr seems to allow opening a file at specified line just like with regular nvim which seems to not work for floaterm. So when in neovim terminal vgrep -s opens the file at correct line while in floaterm it just opens the file and puts us at the first line. Basically something like nvim +99 file.c does not work for floaterm. --- fish/.config/fish/config.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index bf558f5..59aeb61 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -6,8 +6,8 @@ export MANPAGER='nvim +Man!' export NIX_SSL_CERT_FILE='/etc/ssl/certs/ca-certificates.crt' if [ -n "$NVIM_LISTEN_ADDRESS" ] - export VISUAL="floaterm" - export EDITOR="floaterm" + export VISUAL="nvr" + export EDITOR="nvr" else export VISUAL="nvim" export EDITOR="nvim"