fix: addet keymaps for cmdline directly into the plugin file

This commit is contained in:
pika 2025-03-17 18:54:25 +01:00
parent c163136c6f
commit 2d8f9c127b
2 changed files with 13 additions and 15 deletions

View file

@ -16,10 +16,6 @@ map("n", "<Esc>", "<cmd>nohlsearch<CR>")
map("n", "<S-c>", "gcc", { desc = "comment toggle", remap = true })
map("v", "<S-c>", "gc", { desc = "comment toggle", remap = true })
-- ─< cmd line >────────────────────────────────────────────────────────────────────────
vim.api.nvim_set_keymap("n", ":", "<cmd>FineCmdline<CR>", { noremap = true })
map("n", "T", "<cmd>FineCmdline<CR>")
-- ─< Terminal >────────────────────────────────────────────────────────────────────────
map("t", "<C-x>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })

View file

@ -82,19 +82,21 @@ return {
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
},
},
hooks = {
before_mount = function(input)
-- code
end,
after_mount = function(input)
-- code
end,
set_keymaps = function(imap, feedkeys)
-- code
end,
},
-- hooks = {
-- before_mount = function(input)
-- -- code
-- end,
-- after_mount = function(input)
-- -- code
-- end,
-- set_keymaps = function(imap, feedkeys)
-- -- code
-- end,
-- },
})
end,
vim.api.nvim_set_keymap("n", ":", "<cmd>FineCmdline<CR>", { noremap = true }),
vim.keymap.set("n", "T", "<cmd>FineCmdline<CR>"),
},
-- ╭───────────────────────────────────────╮