From 96e23cd45735f01c5208fc164fd3c656a24a0f88 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Thu, 23 Feb 2023 15:27:27 +0100 Subject: [PATCH] add plugins autopairs, leap, tmux-navigator --- nvim/init.lua | 3 +++ nvim/lua/autopairs.lua | 1 + nvim/lua/leapconfig.lua | 1 + nvim/lua/plugins.lua | 14 +++++++++----- nvim/lua/tmux-navigator.lua | 7 +++++++ 5 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 nvim/lua/autopairs.lua create mode 100644 nvim/lua/leapconfig.lua create mode 100644 nvim/lua/tmux-navigator.lua diff --git a/nvim/init.lua b/nvim/init.lua index 3b90254..4c956b7 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -14,6 +14,9 @@ require('comments') require('troubleconfig') require('null-ls-config') require('gitsigns-config') +require('leapconfig') require('filemanager') require('notes') require('zenmode') +require('tmux-navigator') +require('autopairs') diff --git a/nvim/lua/autopairs.lua b/nvim/lua/autopairs.lua new file mode 100644 index 0000000..ba62d44 --- /dev/null +++ b/nvim/lua/autopairs.lua @@ -0,0 +1 @@ +require("nvim-autopairs").setup {} diff --git a/nvim/lua/leapconfig.lua b/nvim/lua/leapconfig.lua new file mode 100644 index 0000000..c0aeeef --- /dev/null +++ b/nvim/lua/leapconfig.lua @@ -0,0 +1 @@ +require('leap').add_default_mappings() diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 9bf24ac..43a2aed 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -19,11 +19,17 @@ Plug 'tpope/vim-sleuth' -- new text objects Plug 'wellle/targets.vim' +-- faster jump +Plug 'ggandor/leap.nvim' + +-- auto brackets +Plug 'windwp/nvim-autopairs' + -- WINDOW MANAGEMENT -- =================== -- tmux navigator -Plug 'christoomey/vim-tmux-navigator' +Plug 'numToStr/Navigator.nvim' -- winresizer Plug 'simeji/winresizer' @@ -70,8 +76,9 @@ Plug 'nvim-lualine/lualine.nvim' -- =================== -- nvim completion +Plug 'williamboman/mason.nvim' +Plug 'williamboman/mason-lspconfig.nvim' Plug 'neovim/nvim-lspconfig' -Plug 'williamboman/nvim-lsp-installer' Plug 'jose-elias-alvarez/null-ls.nvim' @@ -87,9 +94,6 @@ Plug 'ray-x/lsp_signature.nvim' Plug 'L3MON4D3/LuaSnip' Plug 'saadparwaiz1/cmp_luasnip' --- Autoformatter --- Plug 'sbdchd/neoformat' - -- treesitter Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'}) diff --git a/nvim/lua/tmux-navigator.lua b/nvim/lua/tmux-navigator.lua new file mode 100644 index 0000000..f5a2a70 --- /dev/null +++ b/nvim/lua/tmux-navigator.lua @@ -0,0 +1,7 @@ +require('Navigator').setup() + +vim.keymap.set({'n', 't'}, '', 'NavigatorLeft') +vim.keymap.set({'n', 't'}, '', 'NavigatorRight') +vim.keymap.set({'n', 't'}, '', 'NavigatorUp') +vim.keymap.set({'n', 't'}, '', 'NavigatorDown') +vim.keymap.set({'n', 't'}, '', 'NavigatorPrevious')