From 576e8c37a2eebbacea26c49472ae3d2ee668e283 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 26 Oct 2024 16:07:04 +0100 Subject: [PATCH] Re-add nvim-tmux-navigation Easier navigation between Neovim and tmux panes. --- config/neovim/plugin/nvim-tmux-navigation.lua | 12 ++++++++++++ lib/shared/modules/neovim.nix | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 config/neovim/plugin/nvim-tmux-navigation.lua diff --git a/config/neovim/plugin/nvim-tmux-navigation.lua b/config/neovim/plugin/nvim-tmux-navigation.lua new file mode 100644 index 0000000..ace897a --- /dev/null +++ b/config/neovim/plugin/nvim-tmux-navigation.lua @@ -0,0 +1,12 @@ +require("nvim-tmux-navigation").setup { + disable_when_zoomed = true, + + keybindings = { + left = "", + down = "", + up = "", + right = "", + last_active = "", + next = "", + }, +} diff --git a/lib/shared/modules/neovim.nix b/lib/shared/modules/neovim.nix index c86617f..4218d79 100644 --- a/lib/shared/modules/neovim.nix +++ b/lib/shared/modules/neovim.nix @@ -31,6 +31,16 @@ let }; }; + nvim-tmux-navigation = buildVimPlugin { + name = "nvim-tmux-navigation"; + src = fetchFromGitHub { + owner = "alexghergh"; + repo = "nvim-tmux-navigation"; + rev = "4898c98702954439233fdaf764c39636681e2861"; + sha256 = "sha256-CxAgQSbOrg/SsQXupwCv8cyZXIB7tkWO+Y6FDtoR8xk="; + }; + }; + standard-vim = buildVimPlugin { name = "standard-vim"; src = fetchFromGitHub { @@ -160,6 +170,7 @@ in customVim.conf-vim customVim.edit-alternate-vim + customVim.nvim-tmux-navigation customVim.standard-vim customVim.tabline-vim customVim.vim-autoread