summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua31
1 files changed, 0 insertions, 31 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua
deleted file mode 100644
index 997b1a6..0000000
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua
+++ /dev/null
@@ -1,31 +0,0 @@
-return {
- "MagicDuck/grug-far.nvim",
- --- Ensure existing keymaps and opts remain unaffected
- config = function(_, opts)
- require("grug-far").setup(opts)
- vim.api.nvim_create_autocmd("FileType", {
- pattern = "grug-far",
- callback = function()
- -- Map <Esc> to quit after ensuring we're in normal mode
- vim.keymap.set({ "i", "n" }, "<Esc>", "<cmd>stopinsert | bd!<CR>", { buffer = true })
- end,
- })
- end,
- keys = {
- {
- "<leader>rc",
- function()
- local grug = require("grug-far")
- local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
- grug.open({
- transient = true,
- prefills = {
- filesFilter = ext and ext ~= "" and "*." .. ext or nil,
- },
- })
- end,
- mode = { "n", "v" },
- desc = "Search and Replace",
- },
- },
-}