mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(nvim): config cleanup
This commit is contained in:
parent
77007e111c
commit
373c5ad84b
5 changed files with 10 additions and 50 deletions
14
.config/fish/functions/tmux-vim.fish
Normal file
14
.config/fish/functions/tmux-vim.fish
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue