From 4beec8a2b013836604f2b2f5688adf995b892d97 Mon Sep 17 00:00:00 2001 From: tiyn Date: Fri, 18 Aug 2023 01:57:08 +0200 Subject: [PATCH] nvim: added renamer gui --- .config/nvim/lua/keymap.lua | 4 +++- .config/nvim/lua/loadplugins.lua | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/keymap.lua b/.config/nvim/lua/keymap.lua index 72e3bca..a2c4885 100644 --- a/.config/nvim/lua/keymap.lua +++ b/.config/nvim/lua/keymap.lua @@ -79,9 +79,11 @@ vim.keymap.set('n', 'gy', ':lua vim.lsp.buf.type_definition()', { noremap = vim.keymap.set('n', 'gi', ':lua vim.lsp.buf.implementation()', { noremap = true }) vim.keymap.set('n', 'gr', ':lua vim.lsp.buf.references()', { noremap = true }) vim.keymap.set('n', 'K', ':lua vim.lsp.buf.hover()', { noremap = true }) -vim.keymap.set('n', '', ':lua vim.lsp.buf.rename()', { noremap = true }) vim.keymap.set('n', '', ':lua vim.lsp.buf.format()', { noremap = true }) +-- filipdutescu/renamer.nvim +vim.keymap.set('n', '', ':lua require("renamer").rename()', { noremap = true }) + -- nvim-telescope/telescope.nvim vim.keymap.set('n', '', ':Telescope find_files', { noremap = true }) diff --git a/.config/nvim/lua/loadplugins.lua b/.config/nvim/lua/loadplugins.lua index 39b771c..fd21e0d 100644 --- a/.config/nvim/lua/loadplugins.lua +++ b/.config/nvim/lua/loadplugins.lua @@ -319,7 +319,7 @@ return require("lazy").setup({ }, -- fix for cursorhold function - 'antoinemadec/fixcursorhold.nvim', + -- 'antoinemadec/fixcursorhold.nvim', -- showing color of hex values, etc { @@ -333,6 +333,7 @@ return require("lazy").setup({ -- fileexplorer on the side { "nvim-tree/nvim-tree.lua", + cmd = "NvimTreeToggle", dependencies = { "nvim-tree/nvim-web-devicons", }, @@ -560,6 +561,7 @@ return require("lazy").setup({ "NvimTree", "Navbuddy", "FTerm", + "", }, }) require("scrollbar.handlers.search").setup() @@ -597,6 +599,13 @@ return require("lazy").setup({ end }, + -- improved gui for renaming + { + 'filipdutescu/renamer.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + opts = {} + }, + }, -- lazy.nvim configuration {