mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): config cleanup
This commit is contained in:
parent
77007e111c
commit
373c5ad84b
5 changed files with 10 additions and 50 deletions
|
|
@ -1,16 +1,14 @@
|
|||
# idea stolen from the one and only primeagen
|
||||
# aiming to create one session per directory
|
||||
|
||||
function tmux-sessionizer
|
||||
set -f session (string escape -- $PWD)
|
||||
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 'nvim'
|
||||
tmux new-window -t $session:1 'fish'
|
||||
tmux new-session -d -s $session -n 'nvim' 'nvim'
|
||||
end
|
||||
|
||||
tmux select-window -t $session:0
|
||||
tmux attach-session -t $session
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue