diff --git a/lua/config/refactoring.lua b/lua/config/refactoring.lua new file mode 100644 index 0000000..13362b9 --- /dev/null +++ b/lua/config/refactoring.lua @@ -0,0 +1,3 @@ +require('refactoring').setup({ + +}) diff --git a/lua/mappings.lua b/lua/mappings.lua index eb65153..0a5f1ff 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -13,13 +13,12 @@ map("v", "", ":m '<-2gv=gv", { desc = "Move selected text up" }) map("v", "", ":m '>+1gv=gv", { desc = "Move selected text down" }) -- Alt + Arrow Key to change buffer -map("n", "", "h", { desc = "Move to left split" }) -map("n", "", "j", { desc = "Move to bottom split" }) -map("n", "", "k", { desc = "Move to top split" }) -map("n", "", "l", { desc = "Move to right split" }) +map("n", "", "h", { desc = "Move to left split" }) +map("n", "", "j", { desc = "Move to bottom split" }) +map("n", "", "k", { desc = "Move to top split" }) +map("n", "", "l", { desc = "Move to right split" }) map('n', 'e', vim.cmd.NvimTreeToggle) --- map('n', 'e', function() Snacks.explorer() end) map('n', 'u', require('undotree').toggle, { noremap = true, silent = true }) map("n", "", ":bdelete") diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 1dc165c..93ae98a 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,4 +1,16 @@ return { + { + "ThePrimeagen/refactoring.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + }, + lazy = false, + opts = {}, + config = function() + require("config.refactoring") + end, + }, { "nvim-neorg/neorg", lazy = false,