summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-14 12:09:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-14 12:09:59 +0900
commit63956db482b42e2d062412182e17f4b54f6cb27b (patch)
treeb57a5ef512dfc5e5cde1b50085f58af01f784186 /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua
parent68e7cac703579c7ea034b5fcf1a36d54ea3d62f3 (diff)
modified plugins/lualine.lua, modified utils/utils.lua, created plugins/macro.lua
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua42
1 files changed, 42 insertions, 0 deletions
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 = "<m-n>",
+ cycle_prev = "<m-p>",
+ toggle_macro_menu = "<m-q>",
+ },
+ })
+
+ require("telescope").load_extension("macros")
+
+ vim.keymap.set("n", "<leader>fQ", ":Telescope macros<CR>", { desc = "Search macros" })
+ vim.keymap.set("n", "<leader>eQ", ":EditMacros<CR>", { desc = "Edit macros" })
+ vim.keymap.set("n", "<leader>xQ", ":ClearNeoComposer<CR>", { desc = "Clear macros" })
+ end,
+}