From 8ff9a4f5cb69741e1200289cdda438b3c3c50dc0 Mon Sep 17 00:00:00 2001 From: Cameron Motevasselani Date: Mon, 3 Jun 2024 23:02:54 -0700 Subject: [PATCH] updating nvim config --- config/nvim/lua/plugins/tmux-navigation.lua | 8 ++++---- config/nvim/lua/vim-options.lua | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/config/nvim/lua/plugins/tmux-navigation.lua b/config/nvim/lua/plugins/tmux-navigation.lua index fc13dbd..1d94797 100644 --- a/config/nvim/lua/plugins/tmux-navigation.lua +++ b/config/nvim/lua/plugins/tmux-navigation.lua @@ -2,9 +2,9 @@ return { "alexghergh/nvim-tmux-navigation", config = function() require("nvim-tmux-navigation").setup({}) - vim.keymap.set("n", "", "NvimTmuxNavigateLeft", {}) - vim.keymap.set("n", "", "NvimTmuxNavigateDown", {}) - vim.keymap.set("n", "", "NvimTmuxNavigateUp", {}) - vim.keymap.set("n", "", "NvimTmuxNavigateRight", {}) + vim.keymap.set("n", "", "NvimTmuxNavigateLeft", {}) + vim.keymap.set("n", "", "NvimTmuxNavigateDown", {}) + vim.keymap.set("n", "", "NvimTmuxNavigateUp", {}) + vim.keymap.set("n", "", "NvimTmuxNavigateRight", {}) end, } diff --git a/config/nvim/lua/vim-options.lua b/config/nvim/lua/vim-options.lua index f994753..7b66964 100644 --- a/config/nvim/lua/vim-options.lua +++ b/config/nvim/lua/vim-options.lua @@ -8,7 +8,13 @@ vim.cmd("map s ") vim.keymap.set("n", "", "", { silent = true, remap = false }) vim.g.mapleader = " " +-- vim.cmd("let g:tmux_navigator_no_mappings = 1") +-- vim.cmd("nnoremap :TmuxNavigateLeft") +-- vim.cmd("nnoremap :TmuxNavigateDown") +-- vim.cmd("nnoremap :TmuxNavigateUp") +-- vim.cmd("nnoremap :TmuxNavigateRight") +-- was not able to get meta key working for nvim -- vim.keymap.set("n", "", "", { silent = true, remap = true }) -- vim.cmd("nnoremap :echom 'p'") @@ -17,15 +23,10 @@ vim.g.mapleader = " " -- vim.cmd("nnoremap :wincmd k") -- vim.cmd("nnoremap :wincmd l") - -vim.keymap.set('n', '', ':wincmd h') -vim.keymap.set('n', '', ':wincmd j') -vim.keymap.set('n', '', ':wincmd k') -vim.keymap.set('n', '', ':wincmd l') --- vim.keymap.set('n', '', ':wincmd h') --- vim.keymap.set('n', '', ':wincmd j') --- vim.keymap.set('n', '', ':wincmd k') --- vim.keymap.set('n', '', ':wincmd l') +vim.keymap.set('n', '', ':wincmd h') +vim.keymap.set('n', '', ':wincmd j') +vim.keymap.set('n', '', ':wincmd k') +vim.keymap.set('n', '', ':wincmd l') vim.keymap.set('n', 'h', ':nohlsearch')