diff --git a/lua/plugins/tmux.lua b/lua/plugins/tmux.lua index ad795d0..265d9b8 100644 --- a/lua/plugins/tmux.lua +++ b/lua/plugins/tmux.lua @@ -1,5 +1,5 @@ return { - "alexghergh/nvim-tmux-navigation", + 'alexghergh/nvim-tmux-navigation', config = function() local plugin = require('nvim-tmux-navigation') plugin.setup({ @@ -13,7 +13,11 @@ return { vim.fn.system('tmux set-window-option ' .. navigation_flag .. ' 1') end local function unset_navigation_flag() - vim.fn.system('tmux set-window-option -u ' .. navigation_flag) + -- FIXME: Due to a regression this causes SIGABRT when RelWithDebInfo + -- vim.fn.system('tmux set-window-option -u ' .. navigation_flag) + -- https://github.com/neovim/neovim/issues/21856 contains a workaround + vim.fn.jobstart( + 'tmux set-window-option -u ' .. navigation_flag, { detach = true}) end -- [Un]set tmux window option to detect when to change pane.