From 5ee703e3f227354ccb26a63dacb005336982cb6e Mon Sep 17 00:00:00 2001 From: Wittano Bonarotti Date: Mon, 6 Jan 2025 13:09:06 +0100 Subject: [PATCH] fix(tmux): format function body fot tvi command Missing in tmux command was causes crashing command --- home-manager/neovim.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/home-manager/neovim.nix b/home-manager/neovim.nix index bbb7921c..76fb1e08 100644 --- a/home-manager/neovim.nix +++ b/home-manager/neovim.nix @@ -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 = {