Add TmuxNavigator to Neovim config

This commit is contained in:
2026-03-12 03:00:41 +08:00
parent b02b567606
commit d6224e3e50

View File

@@ -230,6 +230,7 @@ vim.pack.add({
{ src = "https://github.com/leath-dub/snipe.nvim" }, { src = "https://github.com/leath-dub/snipe.nvim" },
{ src = "https://github.com/folke/which-key.nvim" }, { src = "https://github.com/folke/which-key.nvim" },
{ src = "https://github.com/mikavilpas/yazi.nvim" }, { src = "https://github.com/mikavilpas/yazi.nvim" },
{ src = "https://github.com/christoomey/vim-tmux-navigator"},
-- Git -- Git
{ src = "https://github.com/tpope/vim-fugitive" }, { src = "https://github.com/tpope/vim-fugitive" },
@@ -310,6 +311,16 @@ wk.add({
{ "<leader>u", group = "toggles" }, { "<leader>u", group = "toggles" },
}) })
-- ============================================================================
-- vim-tmux-navigator
-- ============================================================================
map("n", "<C-h>", "<cmd>TmuxNavigateLeft<CR>", { silent = true })
map("n", "<C-j>", "<cmd>TmuxNavigateDown<CR>", { silent = true })
map("n", "<C-k>", "<cmd>TmuxNavigateUp<CR>", { silent = true })
map("n", "<C-l>", "<cmd>TmuxNavigateRight<CR>", { silent = true })
-- ============================================================================ -- ============================================================================
-- Treesitter -- Treesitter
-- ============================================================================ -- ============================================================================
@@ -758,6 +769,7 @@ local servers = {
"lua_ls", "lua_ls",
"tinymist", "tinymist",
"marksman", "marksman",
"pyright",
} }
for _, server in ipairs(servers) do for _, server in ipairs(servers) do