feat(grug): search word under cursor
This commit is contained in:
parent
2d6f1aa756
commit
09b0e66452
@ -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",
|
"Darazaki/indent-o-matic",
|
||||||
event = "LazyFile",
|
event = "LazyFile",
|
||||||
|
@ -4,6 +4,7 @@ return {
|
|||||||
|
|
||||||
keys = {
|
keys = {
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
|
{"<leader>sw", false}, -- see grug-far
|
||||||
{
|
{
|
||||||
"<leader>fC",
|
"<leader>fC",
|
||||||
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root .. "/LazyVim/lua/lazyvim" }) end,
|
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root .. "/LazyVim/lua/lazyvim" }) end,
|
||||||
|
Loading…
Reference in New Issue
Block a user