Skip to content

Commit

Permalink
fix(tmux): format function body fot tvi command
Browse files Browse the repository at this point in the history
Missing <Enter> in tmux command was causes crashing command
  • Loading branch information
Wittano committed Jan 6, 2025
1 parent 0dd496f commit 5ee703e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions home-manager/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ with lib;
programs = {
fish = {
wittano.completions."tvi" = ''complete -c tvi -x -a "(__fish_complete_directories)"'';
functions.tvi.body = /*fish*/ '' if test -d $argv cd $argv end
tmux new-session -d "nvim"
tmux new-window
tmux attach-session
'';
functions.tvi.body = /*fish*/ ''
if test -d $argv
cd $argv
end
tmux new-session -d "nvim"
tmux new-window
tmux attach-session
'';
};

nixvim = {
Expand Down

0 comments on commit 5ee703e

Please sign in to comment.