From 22d6f2a4ab45c1153c563aa717608c22e3b9da67 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Thu, 5 Dec 2024 19:24:06 -0300 Subject: [PATCH] feat: add tmux.nvim --- lua/dot013/plugins/navigation.lua | 12 ++++++++++++ neovim.nix | 1 + 2 files changed, 13 insertions(+) diff --git a/lua/dot013/plugins/navigation.lua b/lua/dot013/plugins/navigation.lua index 29ad61a..846057c 100644 --- a/lua/dot013/plugins/navigation.lua +++ b/lua/dot013/plugins/navigation.lua @@ -108,4 +108,16 @@ return { }) end, }, + { + "tmux.nvim", + keys = { + { "", ":lua require('tmux').move_left()", "[Tmux] Move to left pane" }, + { "", ":lua require('tmux').move_bottom()", "[Tmux] Move to bottom pane" }, + { "", ":lua require('tmux').move_top()", "[Tmux] Move to top pane" }, + { "", ":lua require('tmux').move_right()", "[Tmux] Move to right pane" }, + }, + after = function() + require("tmux").setup() + end, + }, } diff --git a/neovim.nix b/neovim.nix index 3bf8f75..6f4e968 100644 --- a/neovim.nix +++ b/neovim.nix @@ -23,6 +23,7 @@ telescope-nvim telescope-fzf-native-nvim nvim-treesitter.withAllGrammars + tmux-nvim ]; foldPlugins = builtins.foldl' (acc: next: acc ++ [next] ++ (foldPlugins (next.dependencies or []))) [];