nvim: add satellite.nvim, and new bind for nohlsearch (<C-l>)

TODO: find a way to detect satellite.nvim and make a default bind in
settings.lua
This commit is contained in:
PowerUser64 2022-06-05 11:42:12 -07:00
parent dc771d203e
commit ee46d57ac0
2 changed files with 67 additions and 56 deletions

View file

@ -72,10 +72,6 @@ vim.cmd 'command! MakeTags !ctags -R .'
-- Write buffer as root
vim.cmd 'cmap w!! w !sudo tee > /dev/null %'
-- Press Alt h to toggle highlighting on/off, and show current value.
vim.cmd 'nnoremap <M-h> <cmd>noh<CR>'
vim.cmd 'inoremap <M-h> <cmd>noh<CR>'
-- Toggle spell check with alt S
vim.cmd 'nnoremap <M-S> <cmd>set spell! spell?<CR>'
@ -102,7 +98,6 @@ vim.cmd 'nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>'
vim.cmd 'nnoremap <C-h> <C-w>h'
vim.cmd 'nnoremap <C-j> <C-w>j'
vim.cmd 'nnoremap <C-k> <C-w>k'
vim.cmd 'nnoremap <C-l> <C-w>l'
-- Spell correct with Q, rather than z=
vim.cmd 'nnoremap Q z='