Skip to content

Commit

Permalink
feat(grug-far): replace nvim-spectre with grug-far.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesChiuGit committed Feb 3, 2025
1 parent d2946dc commit 2d9be45
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
20 changes: 20 additions & 0 deletions lua/modules/configs/editor/grug-far.lua
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lua/modules/configs/ui/catppuccin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ return function()
flash = true,
gitgutter = false,
gitsigns = true,
grug_far = true,
harpoon = false,
headlines = false,
hop = true,
Expand Down
6 changes: 3 additions & 3 deletions lua/modules/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ 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"),
}

----------------------------------------------------------------------
--  :treesitter related plugins --
----------------------------------------------------------------------
Expand Down

0 comments on commit 2d9be45

Please sign in to comment.