fix(mappings): change hover/signature_help mappings to K/<C-S>

This commit is contained in:
2025-11-08 04:51:38 +01:00
parent 7639cea4d2
commit 923ca6d7a4
3 changed files with 13 additions and 11 deletions
+9
View File
@@ -157,3 +157,12 @@ vim.api.nvim_create_autocmd("TermLeave", {
vim.cmd.checktime()
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = { "vim", "help" },
callback = function(args)
vim.keymap.set("n", "K", function()
vim.cmd("help " .. vim.fn.expand("<cexpr>"))
end, { buffer = args.buf })
end,
})