nvim: ft keymaps via ftplugin/

This commit is contained in:
js0ny 2025-11-17 16:54:15 +00:00
parent 51e6343b9e
commit 32429308f3
22 changed files with 112 additions and 213 deletions

View file

@ -0,0 +1,11 @@
local prefmap = {
{ mode = "x", keys = "i", cmd = 'c/<C-r>/"', opt = { desc = "Add italic to selected text" } },
{ mode = "x", keys = "b", cmd = 'c*<C-r>"*', opt = { desc = "Add bold to selected text" } },
{ mode = "x", keys = "d", cmd = 'c+<C-r>"+', opt = { desc = "Add strikethrough to selected text" } },
{ mode = "x", keys = "h", cmd = 'c~<C-r>"~', opt = { desc = "Add highlight to selected text" } },
}
local set_buf_keymaps_prefix = require("keymaps.utils").set_buf_keymaps_prefix
-- local set_buf_keymaps = require("keymaps.utils").set_buf_keymaps
set_buf_keymaps_prefix(prefmap)