Updated config

This commit is contained in:
2024-09-22 20:14:13 +02:00
parent 29f67f343a
commit 2ab0d806f9
3 changed files with 14 additions and 2 deletions

View File

@@ -40,6 +40,11 @@ return {
},
},
},
commands = {
history = {
view = "popup",
},
},
routes = {
{
filter = {
@@ -61,8 +66,8 @@ return {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
inc_rename = false,
lsp_doc_border = false,
inc_rename = true,
lsp_doc_border = true,
},
})

View File

@@ -1,5 +1,9 @@
--- @type LazyPluginSpec[]
return {
{
"smjonas/inc-rename.nvim",
config = true,
},
{
"MagicDuck/grug-far.nvim",
config = true,

View File

@@ -28,6 +28,9 @@ local on_attach = function(client, bufnr)
require("tiny-code-action").code_action()
end, opts("Get code actions"))
vim.keymap.set("n", "<leader>vr", function()
return ":IncRename " .. vim.fn.expand("<cword>")
end, { expr = true, silent = true, buffer = bufnr, desc = "Rename symbol" })
vim.keymap.set("n", "<leader>vn", function()
vim.lsp.buf.rename()
end, opts("Rename symbol"))
vim.keymap.set("n", "<leader>vh", function()