diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-14 12:09:59 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-14 12:09:59 +0900 |
| commit | 63956db482b42e2d062412182e17f4b54f6cb27b (patch) | |
| tree | b57a5ef512dfc5e5cde1b50085f58af01f784186 | |
| parent | 68e7cac703579c7ea034b5fcf1a36d54ea3d62f3 (diff) | |
modified plugins/lualine.lua, modified utils/utils.lua, created plugins/macro.lua
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lualine.lua | 14 | ||||
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/macro.lua | 42 | ||||
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/utils/utils.lua | 2 |
3 files changed, 57 insertions, 1 deletions
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 @@ -93,6 +93,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) newfile_status = true, -- Display new file status (new file means no write after created) 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, +} 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", - "<M-p>", + "<C-v>", "<cmd>lua require('thesiahxyz.utils.utils').insert_file_path()<cr>", { noremap = true, silent = true } ) |
