From fff745c4006d719cb84afe665c49713111bcb4f6 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 22 Sep 2023 17:07:35 +0200 Subject: up --- .config/nvim/lua/bindings.lua | 4 +++- .config/nvim/lua/plug.lua | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/bindings.lua b/.config/nvim/lua/bindings.lua index 73e9980..3db5aa6 100644 --- a/.config/nvim/lua/bindings.lua +++ b/.config/nvim/lua/bindings.lua @@ -2,6 +2,7 @@ vim.keymap.set('n', '', ':call nerdcommenter#Comment(0,"toggle")', { no vim.keymap.set('n', '', ':', { noremap = true, silent = false }) vim.keymap.set('n', '', ':bprevious', { noremap = true, silent = true }) vim.keymap.set('n', '', 'zz', { noremap = true, silent = false }) +vim.keymap.set('n', '', 'zz', { noremap = true, silent = false }) vim.keymap.set('n', '', ':bnext', { noremap = true, silent = true }) vim.keymap.set('n', '', 'h', { noremap = true, silent = false }) vim.keymap.set('n', '', 'j', { noremap = true, silent = false }) @@ -10,7 +11,6 @@ vim.keymap.set('n', '', 'l', { noremap = true, silent = false }) vim.keymap.set('n', '', 'o', { noremap = true, silent = false }) vim.keymap.set('n', '', 'q', { noremap = true, silent = false }) vim.keymap.set('n', '*', '*zz', { noremap = true, silent = false }) -vim.keymap.set('n', '', 'zz', { noremap = true, silent = false }) vim.keymap.set('i', '', 'pumvisible() ? "" : ""', { expr = true }) vim.keymap.set('i', '', 'pumvisible() ? "" : ""', { expr = true }) vim.keymap.set('i', '', 'pumvisible() ? asyncomplete#close_popup() : "\\"', { expr = true }) @@ -19,3 +19,5 @@ vim.g.floaterm_keymap_prev = '' vim.g.floaterm_keymap_next = '' vim.keymap.set('v', 'J', ":m '>+1gv=gv") vim.keymap.set('v', 'K', ":m '<-2gv=gv") +vim.keymap.set('x', 'p', "\"_dP") +vim.keymap.set('n', 'Q', '') diff --git a/.config/nvim/lua/plug.lua b/.config/nvim/lua/plug.lua index 2b5bfd1..b61ac2e 100644 --- a/.config/nvim/lua/plug.lua +++ b/.config/nvim/lua/plug.lua @@ -55,5 +55,6 @@ Plug('hrsh7th/nvim-cmp') Plug('hrsh7th/cmp-nvim-lsp') Plug('L3MON4D3/LuaSnip') Plug('VonHeikemen/lsp-zero.nvim', {['branch'] = 'v3.x'}) +Plug('onsails/lspkind.nvim') vim.call('plug#end') -- cgit v1.2.3