From 8de204dea13c2dd44cc55aeae9490823c61b74a3 Mon Sep 17 00:00:00 2001 From: Eric Milford Date: Thu, 9 Dec 2021 16:34:11 -0600 Subject: [PATCH] (nvim) Switch to Navigator plugin --- .config/nvim/lua/em/plugins/init.lua | 2 +- .config/nvim/plugin/navigator.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .config/nvim/plugin/navigator.lua diff --git a/.config/nvim/lua/em/plugins/init.lua b/.config/nvim/lua/em/plugins/init.lua index 52844aaf..3fdb04a7 100644 --- a/.config/nvim/lua/em/plugins/init.lua +++ b/.config/nvim/lua/em/plugins/init.lua @@ -7,7 +7,6 @@ return require("packer").startup(function() use {"arcticicestudio/nord-vim"} use {"christoomey/vim-sort-motion"} use {"christoomey/vim-system-copy"} - use {"christoomey/vim-tmux-navigator"} use {"christoomey/vim-tmux-runner"} use {"coderifous/textobj-word-column.vim"} use {"dhruvasagar/vim-zoom"} @@ -31,6 +30,7 @@ return require("packer").startup(function() use {"mtth/scratch.vim"} use {"nelstrom/vim-textobj-rubyblock"} use {"neovim/nvim-lspconfig"} + use {"numToStr/Navigator.nvim"} use {"nvim-lua/plenary.nvim"} use {"nvim-telescope/telescope.nvim"} use {'nvim-telescope/telescope-fzf-native.nvim', run = "make" } diff --git a/.config/nvim/plugin/navigator.lua b/.config/nvim/plugin/navigator.lua new file mode 100644 index 00000000..064d8ec2 --- /dev/null +++ b/.config/nvim/plugin/navigator.lua @@ -0,0 +1,7 @@ +require('Navigator').setup() + +vim.api.nvim_set_keymap('n', "", "lua require('Navigator').left()", { noremap = true, silent = true, }) +vim.api.nvim_set_keymap('n', "", "lua require('Navigator').up()", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', "", "lua require('Navigator').right()", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', "", "lua require('Navigator').down()", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', "", "lua require('Navigator').previous()", { noremap = true, silent = true })