From 8eaa615596be321a3be12378c5e7d65cc7e482b6 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 24 Jan 2025 13:56:11 -0600 Subject: kitchen sink --- lua/conf/binds.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'lua/conf/binds.lua') diff --git a/lua/conf/binds.lua b/lua/conf/binds.lua index 2f5673a..1426ac3 100644 --- a/lua/conf/binds.lua +++ b/lua/conf/binds.lua @@ -14,8 +14,8 @@ map('v', '', ":m '>+1gv=gv", { desc = 'Move selected text down.' }) map('n', '', 'mzJ`zdelm z') -- when combining lines map('n', 'n', 'nzzzv') -- when searching map('n', 'N', 'Nzzzv') -map('n', '', 'zz') -- half page jumping -map('n', '', 'zz') +map('n', '', 'zzzv') -- half page jumping +map('n', '', 'zzzv') map('n', 'x', function() -- execute order 111 local fn = vim.fn.expand("%:p") @@ -33,12 +33,6 @@ map('n', 'x', function() -- execute order 111 end end, { desc = 'toggle executable flag of the file' }) --- tabs -map('n', '[]', 'tabnew') -map('n', '][', 'tabc') -map('n', '[[', 'tabp') -map('n', ']]', 'tabn') - -- good spell suggestion ui -- (stolen from https://github.com/neovim/neovim/pull/25833) vim.keymap.set('n', 'z=', function() @@ -56,3 +50,11 @@ vim.keymap.set('n', 'z=', function() local prompt = 'Change '..vim.inspect(cword)..' to:' vim.ui.select(vim.fn.spellsuggest(cword, vim.o.lines), { prompt = prompt }, spell_on_choice) end, { desc = 'Shows spelling suggestions' }) + +-- quickfix +map('n', '', 'cnextzz') +map('n', '', 'cprevzz') +map('n', '', 'cclose') + +-- open up Ex +map('n', 'c', 'Ex') -- cgit v1.2.1