diff --git a/init.lua b/init.lua index a2b33e36..88909ed9 100644 --- a/init.lua +++ b/init.lua @@ -44,6 +44,8 @@ P.S. You can delete this when you're done too. It's your config now :) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +vim.o.scrolloff = 10 -- Sets the offset to 10 lines + -- [[ Install `lazy.nvim` plugin manager ]] -- https://github.com/folke/lazy.nvim -- `:help lazy.nvim.txt` for more info @@ -360,6 +362,9 @@ vim.keymap.set(main_modes, '', ':vsplit', { noremap = true, silent = t vim.keymap.set({ 'n', 'v' }, '', ":w", { noremap = true }) vim.keymap.set('i', '', ":wa", { noremap = true }) +-- vim.keymap.set('i', '', "", { noremap = true }) + + -- delete cuts to a register vim.api.nvim_set_keymap('n', 'd', '"ad', { noremap = true }) vim.api.nvim_set_keymap('v', 'd', '"ad', { noremap = true }) @@ -367,7 +372,8 @@ vim.api.nvim_set_keymap('v', 'd', '"ad', { noremap = true }) vim.api.nvim_set_keymap('n', 'D', '"aD', { noremap = true }) vim.api.nvim_set_keymap('v', 'D', '"aD', { noremap = true }) -vim.api.nvim_set_keymap('n', '', 'x', { noremap = true }) +vim.api.nvim_set_keymap('n', '', 'Vx', { noremap = true }) +vim.api.nvim_set_keymap('i', '', 'Vxi', { noremap = true }) vim.api.nvim_set_keymap('v', '', 'x', { noremap = true }) vim.api.nvim_set_keymap('n', 'x', '"_x', { noremap = true }) @@ -588,8 +594,9 @@ local on_attach = function(_, bufnr) nmap('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols') -- See `:help K` for why this keymap - nmap('K', vim.lsp.buf.hover, 'Hover Documentation') - nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') + nmap(',', vim.lsp.buf.hover, 'Hover Documentation') + -- nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') + nmap('.', vim.lsp.buf.signature_help, 'Signature Documentation') -- Lesser used LSP functionality nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')