feat(plugin): add showkeys integrationfor quick key preview
Adds nvzone/showkeys plugin and toggles it on demand to display current key bindings, enhancing developer workflow discoverability of mappings.
This commit is contained in:
3 files changed
+158
-138
No files matched your search
+18
-2
@@ -2,11 +2,10 @@ add({
|
||||
'OXY2DEV/markview.nvim', -- rendering for html and markdown
|
||||
'serhez/bento.nvim', -- buffer manager
|
||||
'akinsho/toggleterm.nvim', --float terminal
|
||||
'nvzone/showkeys', -- show keystrokes
|
||||
})
|
||||
require('bento').setup({})
|
||||
|
||||
|
||||
|
||||
-- lazy load markdown preview
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'markdown',
|
||||
@@ -45,4 +44,21 @@ require('toggleterm').setup({
|
||||
},
|
||||
})
|
||||
|
||||
-- showkeys
|
||||
require('showkeys').setup({
|
||||
position = 'top-right',
|
||||
show_count = true,
|
||||
winopts = {
|
||||
focusable = false,
|
||||
relative = 'editor',
|
||||
style = 'minimal',
|
||||
border = 'single',
|
||||
height = 1,
|
||||
row = 1,
|
||||
col = 0,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader>ok', '<cmd>ShowkeysToggle<CR>', {
|
||||
desc = 'Toggle Showkeys',
|
||||
})
|
||||
Reference in new issue
Block a user