diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index b0d1820..b81a3df 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -14,6 +14,7 @@ "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "oil.nvim": { "branch": "master", "commit": "7e1cd7703ff2924d7038476dcbc04b950203b902" }, "onedark.nvim": { "branch": "master", "commit": "de495fabe171d48aed5525f002d14414efcecbb2" }, + "undotree": { "branch": "master", "commit": "0f1c9816975b5d7f87d5003a19c53c6fd2ff6f7f" }, "vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" }, "vim-lastplace": { "branch": "master", "commit": "e58cb0df716d3c88605ae49db5c4741db8b48aa9" }, "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" } diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index 9e6692c..299212d 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -1,8 +1,9 @@ vim.g.mapleader = " " local map = vim.keymap.set --- Motions -vim.keymap.set({"n", "x", "o"}, "s", "(leap)") +-- Edit +map({"n", "x", "o"}, "s", "(leap)") +map("n", "u", "UndotreeToggle") -- Yank map("x", "y", '"+y') diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 86aa43a..23f1dc5 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -211,6 +211,7 @@ return require("lazy").setup({ -- {{{ Miscellaneous { "https://github.com/farmergreg/vim-lastplace", event = "BufReadPost" }, { "https://github.com/nvim-mini/mini.bufremove", lazy = true }, + { "https://github.com/mbbill/undotree", event = "VeryLazy" }, { "https://github.com/tpope/vim-sleuth",