[zsh] remove --listen on nvim. It already listens by default

This commit is contained in:
Afonso Franco 2024-10-05 13:09:10 +01:00
parent bbbe921f1b
commit e9d6a16b41
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54

View file

@ -1,12 +1,12 @@
function vim {
if [[ -z "$@" ]]; then
if [[ -f "./.session.vim" ]]; then
nvim -S .session.vim --listen /tmp/nvim.pipe -c 'lua vim.g.savesession = true'
nvim -S .session.vim -c 'lua vim.g.savesession = true'
else
nvim --listen /tmp/nvim.pipe -c 'lua vim.g.savesession = true'
nvim -c 'lua vim.g.savesession = true'
fi
else
nvim --listen /tmp/nvim.pipe "$@"
nvim "$@"
fi
}