diff --git a/lua/pika/core/keymaps.lua b/lua/pika/core/keymaps.lua index 633eb1c..57203c8 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 969fe37..be74965 100644 --- a/lua/pika/plugins/ui.lua +++ b/lua/pika/plugins/ui.lua @@ -51,6 +51,41 @@ return { vim.keymap.set("n", "", "BufferLineCyclePrev") end, }, + -- ╭───────────────────────────────────╮ + -- │ cmdline - for nice command inputs │ + -- ╰───────────────────────────────────╯ + { + "VonHeikemen/fine-cmdline.nvim", + dependencies = { + { "MunifTanjim/nui.nvim" }, + }, + config = function() + require("fine-cmdline").setup({ + cmdline = { + enable_keymaps = true, + smart_history = true, + prompt = " ", + }, + popup = { + position = { + row = "10%", + col = "50%", + }, + size = { + width = "60%", + }, + border = { + style = "rounded", + }, + win_options = { + winhighlight = "Normal:Normal,FloatBorder:FloatBorder", + }, + }, + }) + end, + vim.api.nvim_set_keymap("n", ":", "FineCmdline", { noremap = true }), + vim.keymap.set("n", "T", "FineCmdline"), + }, -- ╭───────────────────────────────────────╮ -- │ barbecue - for a nice breadcrump menu │