-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: use grug-far instead of spectre
- Loading branch information
Showing
7 changed files
with
72 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
return { | ||
|
||
-- Find the enemy and replace them with dark power | ||
{ | ||
'nvim-pack/nvim-spectre', | ||
-- stylua: ignore | ||
keys = { | ||
{ '<Leader>sp', function() require('spectre').toggle() end, desc = 'Spectre', }, | ||
{ '<Leader>sp', function() require('spectre').open_visual({ select_word = true }) end, mode = 'x', desc = 'Spectre Word' }, | ||
}, | ||
opts = { | ||
open_cmd = 'noswapfile vnew', | ||
mapping = { | ||
['toggle_gitignore'] = { | ||
map = 'tg', | ||
cmd = "<cmd>lua require('spectre').change_options('gitignore')<CR>", | ||
desc = 'toggle gitignore', | ||
}, | ||
}, | ||
find_engine = { | ||
['rg'] = { | ||
cmd = 'rg', | ||
args = { | ||
'--pcre2', | ||
'--color=never', | ||
'--no-heading', | ||
'--with-filename', | ||
'--line-number', | ||
'--column', | ||
'--ignore', | ||
}, | ||
options = { | ||
['gitignore'] = { | ||
value = '--no-ignore', | ||
icon = '[G]', | ||
desc = 'gitignore', | ||
}, | ||
}, | ||
}, | ||
}, | ||
default = { | ||
find = { | ||
cmd = 'rg', | ||
options = { 'ignore-case', 'hidden', 'gitignore' }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters