From a9cf2a5ea80af1bd01be698345c41e8ec5e3e5c4 Mon Sep 17 00:00:00 2001 From: krolxon Date: Wed, 30 Oct 2024 09:55:17 +0530 Subject: [PATCH] add undotree and markview.nvim --- lua/mappings.lua | 3 +++ lua/plugins/init.lua | 44 +++++++++++++++++++++++++++++++------------- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index c446012..081b736 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -46,3 +46,6 @@ require("harpoon").setup() map("n", "", "CompilerOpen") map("n", "", "CompilerStop" .. "CompilerRedo") map("n", "", "CompilerToggleResults") + +-- UndotreeToggle +map("n", "u", "UndotreeToggle") diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index c2920f1..2715f3d 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -12,15 +12,31 @@ return { end, }, - -- { - -- "nvim-treesitter/nvim-treesitter", - -- opts = { - -- ensure_installed = { - -- "vim", "lua", "vimdoc", - -- "html", "css" - -- }, - -- }, - -- }, + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { + "vim", + "lua", + "vimdoc", + "rust", + "python", + "c", + "regex", + "html", + "css", + "javascript", + "markdown", + "markdown_inline", + "tsx" + }, + }, + }, + + { + "mbbill/undotree", + cmd = "UndotreeToggle", + }, -- Misc { @@ -44,10 +60,12 @@ return { }, { - "MeanderingProgrammer/render-markdown.nvim", - opts = {}, - ft = "markdown", - dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons + "OXY2DEV/markview.nvim", + lazy = false, + dependencies = { + "nvim-treesitter/nvim-treesitter", + "nvim-tree/nvim-web-devicons", + }, }, {