nvim: keymappings: Disable macro recording

This commit is contained in:
Sanchayan Maity 2022-07-11 19:28:00 +05:30
parent 01dddffa53
commit d4edc15bd2
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ local opts = { noremap=true, unique=true }
remap('c', '<Esc>', '<C-C>', opts)
remap('n', '<Esc>', '<Esc>:noh<CR>', opts)
-- Disable recording
remap('n', 'q', '<Nop>', { noremap = false })
-- Use Q to execute default register.
remap('n', 'Q', '<Nop>', opts)
-- Copy to clipboard