diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2024-12-27 15:14:23 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2024-12-27 15:14:23 +0100 |
| commit | 9155cf33ed7533122666e193dad3f76e8a2b890f (patch) | |
| tree | 9fbe7d73810d5a0dacd8c9ddb4380f0620c2f600 /lua/simenandre/plugins/grug.lua | |
| parent | d8b6277d0915bc5a352f2ec1260866c74cfe2e55 (diff) | |
| download | config.nvim-9155cf33ed7533122666e193dad3f76e8a2b890f.tar.gz config.nvim-9155cf33ed7533122666e193dad3f76e8a2b890f.zip | |
add my nvim config
Diffstat (limited to 'lua/simenandre/plugins/grug.lua')
| -rw-r--r-- | lua/simenandre/plugins/grug.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/simenandre/plugins/grug.lua b/lua/simenandre/plugins/grug.lua new file mode 100644 index 0000000..28e4ca5 --- /dev/null +++ b/lua/simenandre/plugins/grug.lua @@ -0,0 +1,22 @@ +return { + "MagicDuck/grug-far.nvim", + opts = { headerMaxWidth = 80 }, + cmd = "GrugFar", + keys = { + { + "<leader>ff", + 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", + }, + }, +} |
