feat: add tmux navigator, undotree

This commit is contained in:
2025-03-06 14:33:22 +02:00
parent c8f9ca462a
commit d9b655ffac
4 changed files with 36 additions and 1 deletions

View File

@@ -174,6 +174,12 @@
nvim-web-devicons
plenary-nvim
];
custom-tmux-navigator = [
vim-tmux-navigator
];
custom-undotree = [
undotree
];
};
# not loaded automatically at startup.
@@ -265,6 +271,9 @@
# but we can still send the info from nix to lua that we want it!
kickstart-gitsigns = true;
custom-tmux-navigator = true;
custom-undotree = true;
# we can pass whatever we want actually.
have_nerd_font = false;

View File

@@ -797,7 +797,8 @@ require('nixCatsUtils.lazyCat').setup(nixCats.pawsible { 'allPlugins', 'start',
-- change the command in the config to whatever the name of that colorscheme is.
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'catppucchin/nvim',
'catppuccin/nvim',
name = 'catppuccin-nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
init = function()
-- Load the colorscheme here.
@@ -903,6 +904,8 @@ require('nixCatsUtils.lazyCat').setup(nixCats.pawsible { 'allPlugins', 'start',
require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree',
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
require 'custom.plugins.tmux_navigator',
require 'custom.plugins.undotree',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.

View File

@@ -0,0 +1,17 @@
return {
'christoomey/vim-tmux-navigator',
cmd = {
'TmuxNavigateLeft',
'TmuxNavigateDown',
'TmuxNavigateUp',
'TmuxNavigateRight',
'TmuxNavigatePrevious',
},
keys = {
{ '<c-h>', '<cmd><C-U>TmuxNavigateLeft<cr>' },
{ '<c-j>', '<cmd><C-U>TmuxNavigateDown<cr>' },
{ '<c-k>', '<cmd><C-U>TmuxNavigateUp<cr>' },
{ '<c-l>', '<cmd><C-U>TmuxNavigateRight<cr>' },
{ '<c-\\>', '<cmd><C-U>TmuxNavigatePrevious<cr>' },
},
}

View File

@@ -0,0 +1,6 @@
return {
'mbbill/undotree',
keys = {
{ '<leader>u', '<cmd> UndotreeToggle <CR>', desc = 'Toggle [U]ndotree', mode = { 'n' } },
},
}