feat: add undotree
This commit is contained in:
@@ -41,6 +41,7 @@ require("pack").setup({
|
|||||||
"https://github.com/nvim-tree/nvim-tree.lua",
|
"https://github.com/nvim-tree/nvim-tree.lua",
|
||||||
"https://github.com/stevearc/oil.nvim",
|
"https://github.com/stevearc/oil.nvim",
|
||||||
"https://github.com/hedyhli/outline.nvim",
|
"https://github.com/hedyhli/outline.nvim",
|
||||||
|
"https://github.com/jiaoshijie/undotree",
|
||||||
{
|
{
|
||||||
"https://github.com/tree-sitter/tree-sitter-bash",
|
"https://github.com/tree-sitter/tree-sitter-bash",
|
||||||
ts_parser = "bash",
|
ts_parser = "bash",
|
||||||
|
|||||||
@@ -1,5 +1 @@
|
|||||||
vim.cmd.packadd("nvim.undotree")
|
vim.keymap.set("n", "<leader>u", require("undotree").toggle)
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>uu", function()
|
|
||||||
require("undotree").open({ command = "leftabove40vnew" })
|
|
||||||
end)
|
|
||||||
|
|||||||
@@ -142,6 +142,10 @@
|
|||||||
"rev": "484e2889f3619b9da90c9b73a6f216a71947c09f",
|
"rev": "484e2889f3619b9da90c9b73a6f216a71947c09f",
|
||||||
"src": "https://github.com/georgeharker/tree-sitter-zsh"
|
"src": "https://github.com/georgeharker/tree-sitter-zsh"
|
||||||
},
|
},
|
||||||
|
"undotree": {
|
||||||
|
"rev": "0e6d41d55ad147407e4ba00a292973de8db0b836",
|
||||||
|
"src": "https://github.com/jiaoshijie/undotree"
|
||||||
|
},
|
||||||
"vim-fugitive": {
|
"vim-fugitive": {
|
||||||
"rev": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0",
|
"rev": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0",
|
||||||
"src": "https://github.com/tpope/vim-fugitive"
|
"src": "https://github.com/tpope/vim-fugitive"
|
||||||
|
|||||||
Reference in New Issue
Block a user