From: Huck Boles Date: Sat, 13 May 2023 21:32:29 +0000 (-0500) Subject: map editing X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=4a6c243a89b98025b11b0fd0f225a3452f0e252c;p=nvim.git map editing --- diff --git a/lua/huck/map.lua b/lua/huck/map.lua index dcdf426..72a8c90 100644 --- a/lua/huck/map.lua +++ b/lua/huck/map.lua @@ -1,10 +1,5 @@ --- quick splits, tabs, buffers -vim.keymap.set('n', 'h', ":vsplit ") -vim.keymap.set('n', 'v', ":split ") -vim.keymap.set('n', 't', ':tabnew ') -vim.keymap.set('n', '', 'bprev') - -- movement enhancers +vim.keymap.set('n', '', 'bprev') vim.keymap.set('n', 'j', 'gj') vim.keymap.set('n', 'k', 'gk') vim.keymap.set('n', 'w', 'za') @@ -21,7 +16,9 @@ vim.keymap.set('n', 'Q', '@@') -- useful ex (:) commands vim.keymap.set('n', 's', [[:%s/\<\>//gI]]) vim.keymap.set('n', 'c', ':r!') -vim.keymap.set('n', 'Q', 'so') +vim.keymap.set('n', 'h', ":vsplit ") +vim.keymap.set('n', 'v', ":split ") +vim.keymap.set('n', 't', ':tabnew ') -- better line editing vim.keymap.set('v', 'J', ":m '>+1gv=gv") @@ -34,6 +31,7 @@ vim.keymap.set('n', 'K', 'Jx') -- quick config editing vim.keymap.set('n', '=', 'tabnew ~/.config/nvim/init.lua') vim.keymap.set('n', 'q', 'Lazy') +vim.keymap.set('n', 'Q', 'so') -- better terminal movement keys vim.keymap.set('t', '', [[]]) diff --git a/lua/plugins.lua b/lua/plugins.lua index dcc14c0..8c69f96 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -28,7 +28,7 @@ return { { 'akinsho/toggleterm.nvim', - keys = { { '', 'ToggleTerm' } }, + keys = { { [[\]], 'ToggleTerm' } }, opts = { shade_terminals = false, size = 10