ref(nvim): config cleanup

This commit is contained in:
Léana 江 2023-04-01 14:00:53 +02:00
parent 77007e111c
commit 373c5ad84b
5 changed files with 10 additions and 50 deletions

View file

@ -0,0 +1,14 @@
# idea stolen from the one and only primeagen
# aiming to create one session per directory
function tmux-vim
set -f session (snakecase $PWD)
tmux start-server
if not tmux has-session -t $session > /dev/null 2>&1
tmux new-session -d -s $session -n 'nvim' 'nvim'
end
tmux attach-session -t $session
end