Skip to content

Commit afeda5c

Browse files
committed
feat(grug-far): replace nvim-spectre with grug-far.nvim
1 parent 8b7bfab commit afeda5c

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
return function()
2+
vim.g.maplocalleader = ","
3+
require("modules.utils").load_plugin("grug-far", {
4+
engine = "ripgrep",
5+
engines = {
6+
ripgrep = {
7+
path = "rg",
8+
showReplaceDiff = true,
9+
placeholders = {
10+
enabled = true,
11+
},
12+
},
13+
},
14+
windowCreationCommand = "bot split",
15+
disableBufferLineNumbers = false,
16+
icons = {
17+
enabled = true,
18+
},
19+
})
20+
end

lua/modules/configs/ui/catppuccin.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ return function()
3939
flash = true,
4040
fzf = true,
4141
gitsigns = true,
42-
grug_far = false,
42+
grug_far = true,
4343
hop = false,
4444
illuminate = true,
4545
indent_blankline = { enabled = true, colored_indent_levels = true },
@@ -68,7 +68,6 @@ return function()
6868
rainbow_delimiters = true,
6969
render_markdown = true,
7070
semantic_tokens = true,
71-
snacks = false,
7271
telescope = { enabled = true, style = "nvchad" },
7372
treesitter = true,
7473
treesitter_context = true,

lua/modules/plugins/editor.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ editor["brenoprata10/nvim-highlight-colors"] = {
9393
event = { "CursorHold", "CursorHoldI" },
9494
config = require("editor.highlight-colors"),
9595
}
96-
editor["nvim-pack/nvim-spectre"] = {
96+
editor["MagicDuck/grug-far.nvim"] = {
9797
lazy = true,
98-
cmd = "Spectre",
98+
cmd = "GrugFar",
99+
config = require("editor.grug-far"),
99100
}
100101
-- editor["joshuadanpeterson/typewriter.nvim"] = {
101102
-- lazy = true,

0 commit comments

Comments
 (0)