diff --git a/lua/modules/configs/editor/grug-far.lua b/lua/modules/configs/editor/grug-far.lua new file mode 100644 index 000000000..4af4ea122 --- /dev/null +++ b/lua/modules/configs/editor/grug-far.lua @@ -0,0 +1,20 @@ +return function() + vim.g.maplocalleader = "," + require("modules.utils").load_plugin("grug-far", { + engine = "ripgrep", + engines = { + ripgrep = { + path = "rg", + showReplaceDiff = true, + placeholders = { + enabled = true, + }, + }, + }, + windowCreationCommand = "bot split", + disableBufferLineNumbers = false, + icons = { + enabled = true, + }, + }) +end diff --git a/lua/modules/configs/ui/catppuccin.lua b/lua/modules/configs/ui/catppuccin.lua index f30bcd1d5..480556fdc 100644 --- a/lua/modules/configs/ui/catppuccin.lua +++ b/lua/modules/configs/ui/catppuccin.lua @@ -61,6 +61,7 @@ return function() flash = true, gitgutter = false, gitsigns = true, + grug_far = true, harpoon = false, headlines = false, hop = true, diff --git a/lua/modules/plugins/editor.lua b/lua/modules/plugins/editor.lua index 204ff047d..8047ad999 100644 --- a/lua/modules/plugins/editor.lua +++ b/lua/modules/plugins/editor.lua @@ -84,9 +84,10 @@ editor["tpope/vim-sleuth"] = { lazy = true, event = { "BufNewFile", "BufReadPost", "BufFilePost" }, } -editor["nvim-pack/nvim-spectre"] = { +editor["MagicDuck/grug-far.nvim"] = { lazy = true, - cmd = "Spectre", + cmd = "GrugFar", + config = require("editor.grug-far"), } ----------------------------------------------------------------------