From 63956db482b42e2d062412182e17f4b54f6cb27b Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 14 Jun 2025 12:09:59 +0900 Subject: modified plugins/lualine.lua, modified utils/utils.lua, created plugins/macro.lua --- .../TheSiahxyz/lua/thesiahxyz/plugins/lualine.lua | 14 ++++++++ .../TheSiahxyz/lua/thesiahxyz/plugins/macro.lua | 42 ++++++++++++++++++++++ .../TheSiahxyz/lua/thesiahxyz/utils/utils.lua | 2 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua (limited to 'ar') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lualine.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lualine.lua index e9323b5..b371704 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lualine.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lualine.lua @@ -92,6 +92,20 @@ return { }, }, lualine_c = { + { + function() + local has_neocomposer, noice = pcall(require, "NeoComposer") + if has_neocomposer then + return require("NeoComposer.ui").status_recording + else + return "" + end + end, + cond = function() + local has_neocomposer, noice = pcall(require, "NeoComposer") + return has_neocomposer + end, + }, { "filename", file_status = true, -- Displays file status (readonly status, modified status) diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua new file mode 100644 index 0000000..bd0af30 --- /dev/null +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua @@ -0,0 +1,42 @@ +return { + "ecthelionvi/NeoComposer.nvim", + dependencies = { "kkharji/sqlite.lua" }, + opts = {}, + config = function() + require("NeoComposer").setup({ + notify = true, + delay_timer = 150, + queue_most_recent = false, + window = { + width = 80, + height = 10, + border = "rounded", + winhl = { + Normal = "ComposerNormal", + }, + }, + colors = { + bg = "NONE", + fg = "#ff9e64", + red = "#ec5f67", + blue = "#5fb3b3", + green = "#99c794", + }, + keymaps = { + play_macro = "Q", + yank_macro = "yq", + stop_macro = "cq", + toggle_record = "q", + cycle_next = "", + cycle_prev = "", + toggle_macro_menu = "", + }, + }) + + require("telescope").load_extension("macros") + + vim.keymap.set("n", "fQ", ":Telescope macros", { desc = "Search macros" }) + vim.keymap.set("n", "eQ", ":EditMacros", { desc = "Edit macros" }) + vim.keymap.set("n", "xQ", ":ClearNeoComposer", { desc = "Clear macros" }) + end, +} diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/utils.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/utils.lua index 2925569..f4d280b 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/utils.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/utils/utils.lua @@ -62,7 +62,7 @@ end vim.api.nvim_set_keymap( "i", - "", + "", "lua require('thesiahxyz.utils.utils').insert_file_path()", { noremap = true, silent = true } ) -- cgit v1.2.3