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("n", "<S-c>", "gcc", { desc = "comment toggle", remap = true })
|
||||||
map("v", "<S-c>", "gc", { 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 >────────────────────────────────────────────────────────────────────────
|
-- ─< Terminal >────────────────────────────────────────────────────────────────────────
|
||||||
map("t", "<C-x>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })
|
map("t", "<C-x>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })
|
||||||
|
|
||||||
|
|
|
@ -82,19 +82,21 @@ return {
|
||||||
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
|
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hooks = {
|
-- hooks = {
|
||||||
before_mount = function(input)
|
-- before_mount = function(input)
|
||||||
-- code
|
-- -- code
|
||||||
end,
|
-- end,
|
||||||
after_mount = function(input)
|
-- after_mount = function(input)
|
||||||
-- code
|
-- -- code
|
||||||
end,
|
-- end,
|
||||||
set_keymaps = function(imap, feedkeys)
|
-- set_keymaps = function(imap, feedkeys)
|
||||||
-- code
|
-- -- code
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
})
|
})
|
||||||
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