From 2ab0d806f90690994f2c8e22af25e5090ad95fc3 Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 22 Sep 2024 20:14:13 +0200 Subject: [PATCH] Updated config --- lua/taken/plugins/noice.lua | 9 +++++++-- lua/taken/plugins/otherplugins.lua | 4 ++++ lua/taken/utils/on_attach.lua | 3 +++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lua/taken/plugins/noice.lua b/lua/taken/plugins/noice.lua index 7356270..3b13646 100644 --- a/lua/taken/plugins/noice.lua +++ b/lua/taken/plugins/noice.lua @@ -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, }, }) diff --git a/lua/taken/plugins/otherplugins.lua b/lua/taken/plugins/otherplugins.lua index 8605c30..93294ea 100644 --- a/lua/taken/plugins/otherplugins.lua +++ b/lua/taken/plugins/otherplugins.lua @@ -1,5 +1,9 @@ --- @type LazyPluginSpec[] return { + { + "smjonas/inc-rename.nvim", + config = true, + }, { "MagicDuck/grug-far.nvim", config = true, diff --git a/lua/taken/utils/on_attach.lua b/lua/taken/utils/on_attach.lua index 66a3b23..862c06d 100644 --- a/lua/taken/utils/on_attach.lua +++ b/lua/taken/utils/on_attach.lua @@ -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", "vr", function() + return ":IncRename " .. vim.fn.expand("") + end, { expr = true, silent = true, buffer = bufnr, desc = "Rename symbol" }) + vim.keymap.set("n", "vn", function() vim.lsp.buf.rename() end, opts("Rename symbol")) vim.keymap.set("n", "vh", function()