fix: addet keymaps for cmdline directly into the plugin file
This commit is contained in:
parent
c163136c6f
commit
2d8f9c127b
2 changed files with 13 additions and 15 deletions
|
@ -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" })
|
||||
|
||||
|
|
|
@ -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>"),
|
||||
},
|
||||
|
||||
-- ╭───────────────────────────────────────╮
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue