Use alexghergh/nvim-tmux-navigation

Replace `christoomey/vim-tmux-navigator` with
`alexghergh/nvim-tmux-navigation`.

https://github.com/alexghergh/nvim-tmux-navigation
This commit is contained in:
Oliver Davies 2024-02-27 17:32:24 +00:00
parent 662ff52b9a
commit 3cfe6444c6
3 changed files with 29 additions and 1 deletions

View file

@ -1,5 +1,11 @@
# Changelog
## 27th February 2024
### Changed
* Replace `christoomey/vim-tmux-navigator` with `alexghergh/nvim-tmux-navigation`.
## 26th February 2024
### Added

View file

@ -0,0 +1,12 @@
require("nvim-tmux-navigation").setup {
disable_when_zoomed = true,
keybindings = {
down = "<C-j>",
last_active = "<C-\\>",
left = "<C-h>",
next = "<C-Space>",
right = "<C-l>",
up = "<C-k>",
},
}

View file

@ -36,6 +36,16 @@ in rec {
pkgs2305 = inputs.nixpkgs-2305.legacyPackages.${system};
customVim = {
nvim-tmux-navigation = pkgs.vimUtils.buildVimPlugin {
name = "nvim-tmux-navigation";
src = pkgs.fetchFromGitHub {
owner = "alexghergh";
repo = "nvim-tmux-navigation";
rev = "4898c98702954439233fdaf764c39636681e2861";
sha256 = "CxAgQSbOrg/SsQXupwCv8cyZXIB7tkWO+Y6FDtoR8xk=";
};
};
tabline-vim = pkgs.vimUtils.buildVimPlugin {
name = "tabline-vim";
src = pkgs.fetchFromGitHub {
@ -89,6 +99,7 @@ in rec {
opdavies-nvim = mkVimPlugin {inherit system;};
in [
customVim.nvim-tmux-navigation
customVim.tabline-vim
customVim.vim-caser
customVim.vim-heritage
@ -118,7 +129,6 @@ in rec {
vimPlugins.vim-sleuth
vimPlugins.vim-terraform
vimPlugins.vim-textobj-user
vimPlugins.vim-tmux-navigator
vimPlugins.vim-unimpaired
# {