Greetings,
Currently the plugin uses hard-coded keymaps for code-preview.nvim actions (some of them are buffer local, like ]c and [c for navigating between changes), which makes it not that big of a deal. But <leader>dq for example is a global keymap and conflict with user's defined keymaps:
|
vim.keymap.set("n", "<leader>dq", function() |
|
require("code-preview.diff").close_diff_and_clear() |
|
end, { desc = "Close code-preview diff" }) |
It would be nice if we could configure the keymaps via setup() function or if you simply provided <Plug> keymaps so we could create the keymaps ourselves, even if outside of the plugin setup process.
Thanks in advance.
Greetings,
Currently the plugin uses hard-coded keymaps for
code-preview.nvimactions (some of them are buffer local, like]cand[cfor navigating between changes), which makes it not that big of a deal. But<leader>dqfor example is a global keymap and conflict with user's defined keymaps:code-preview.nvim/lua/code-preview/init.lua
Lines 143 to 145 in 9ec3a33
It would be nice if we could configure the keymaps via
setup()function or if you simply provided<Plug>keymaps so we could create the keymaps ourselves, even if outside of the plugin setup process.Thanks in advance.