feat(grug): search word under cursor

This commit is contained in:
Michel 2024-09-11 14:34:25 +02:00
parent 2d6f1aa756
commit 09b0e66452
2 changed files with 17 additions and 0 deletions

View File

@ -9,6 +9,22 @@ return {
},
},
{
"MagicDuck/grug-far.nvim",
keys = {
{
"<leader>sw",
function()
require('grug-far').open({ prefills = {
flags = '-w',
search = vim.fn.expand("<cword>"),
}})
end,
desc = "Grug: word\\cursor",
},
},
},
{
"Darazaki/indent-o-matic",
event = "LazyFile",

View File

@ -4,6 +4,7 @@ return {
keys = {
-- stylua: ignore
{"<leader>sw", false}, -- see grug-far
{
"<leader>fC",
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root .. "/LazyVim/lua/lazyvim" }) end,