From 2d8f9c127b9573271e4c043f8156a3c31194e422 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 17 Mar 2025 18:54:25 +0100 Subject: [PATCH] fix: addet keymaps for cmdline directly into the plugin file --- lua/pika/core/keymaps.lua | 4 ---- lua/pika/plugins/ui.lua | 24 +++++++++++++----------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/lua/pika/core/keymaps.lua b/lua/pika/core/keymaps.lua index e24df43..6f205cd 100644 --- a/lua/pika/core/keymaps.lua +++ b/lua/pika/core/keymaps.lua @@ -16,10 +16,6 @@ map("n", "", "nohlsearch") map("n", "", "gcc", { desc = "comment toggle", remap = true }) map("v", "", "gc", { desc = "comment toggle", remap = true }) --- ─< cmd line >──────────────────────────────────────────────────────────────────────── -vim.api.nvim_set_keymap("n", ":", "FineCmdline", { noremap = true }) -map("n", "T", "FineCmdline") - -- ─< Terminal >──────────────────────────────────────────────────────────────────────── map("t", "", "", { desc = "terminal escape terminal mode" }) diff --git a/lua/pika/plugins/ui.lua b/lua/pika/plugins/ui.lua index 6215f69..797645d 100644 --- a/lua/pika/plugins/ui.lua +++ b/lua/pika/plugins/ui.lua @@ -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", ":", "FineCmdline", { noremap = true }), + vim.keymap.set("n", "T", "FineCmdline"), }, -- ╭───────────────────────────────────────╮