summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-09-22 17:07:35 +0200
committerJoe <rrbo@proton.me>2023-09-22 17:07:35 +0200
commitfff745c4006d719cb84afe665c49713111bcb4f6 (patch)
tree2b0a8d669d663a6a274a3d96779e1a65bdd5c4a3 /.config/nvim/lua
parentup (diff)
downloaddotfiles-bsd-fff745c4006d719cb84afe665c49713111bcb4f6.tar.gz
dotfiles-bsd-fff745c4006d719cb84afe665c49713111bcb4f6.tar.bz2
dotfiles-bsd-fff745c4006d719cb84afe665c49713111bcb4f6.tar.xz
dotfiles-bsd-fff745c4006d719cb84afe665c49713111bcb4f6.tar.zst
dotfiles-bsd-fff745c4006d719cb84afe665c49713111bcb4f6.zip
up
Diffstat (limited to '')
-rw-r--r--.config/nvim/lua/bindings.lua4
-rw-r--r--.config/nvim/lua/plug.lua1
2 files changed, 4 insertions, 1 deletions
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', '<M-;>', ':call nerdcommenter#Comment(0,"toggle")<CR>', { no
vim.keymap.set('n', '<M-x>', ':', { noremap = true, silent = false })
vim.keymap.set('n', '<M-k>', ':bprevious<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<C-u>', '<C-u>zz', { noremap = true, silent = false })
+vim.keymap.set('n', '<C-d>', '<C-d>zz', { noremap = true, silent = false })
vim.keymap.set('n', '<M-j>', ':bnext<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<C-h>', '<C-w>h', { noremap = true, silent = false })
vim.keymap.set('n', '<C-j>', '<C-w>j', { noremap = true, silent = false })
@@ -10,7 +11,6 @@ vim.keymap.set('n', '<C-l>', '<C-w>l', { noremap = true, silent = false })
vim.keymap.set('n', '<C-o>', '<C-w>o', { noremap = true, silent = false })
vim.keymap.set('n', '<C-q>', '<C-w>q', { noremap = true, silent = false })
vim.keymap.set('n', '*', '*zz', { noremap = true, silent = false })
-vim.keymap.set('n', '<C-d>', '<C-d>zz', { noremap = true, silent = false })
vim.keymap.set('i', '<C-j>', 'pumvisible() ? "<C-n>" : "<C-j>"', { expr = true })
vim.keymap.set('i', '<C-k>', 'pumvisible() ? "<C-p>" : "<C-k>"', { expr = true })
vim.keymap.set('i', '<cr>', 'pumvisible() ? asyncomplete#close_popup() : "\\<cr>"', { expr = true })
@@ -19,3 +19,5 @@ vim.g.floaterm_keymap_prev = '<F11>'
vim.g.floaterm_keymap_next = '<F12>'
vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv")
+vim.keymap.set('x', '<leader>p', "\"_dP")
+vim.keymap.set('n', 'Q', '<nop>')
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')