Added gd keymap to grep search word under cursor (mainly for searching

types from lsp hover)
This commit is contained in:
2025-07-21 20:26:03 +09:00
parent 9c76850e67
commit 832d2c6ca2
+11
View File
@@ -45,6 +45,17 @@ if builtin then
end,
{ desc = "[S]earch [N]eovim files" }
)
vim.api.nvim_create_autocmd("FileType", {
pattern = {"markdown"},
callback = function ()
vim.schedule(function ()
vim.keymap.set("n", "gd", function ()
require("telescope.builtin").grep_string({search=vim.call("expand", "<cword>")})
end, { desc = "Grep search word under cursor"})
end)
end
})
end
--LSP