diff options
1 files changed, 42 insertions, 14 deletions
| -rw-r--r-- | lua/plugins/default.lua | 56 |
diff --git a/lua/plugins/default.lua b/lua/plugins/default.lua index e326561..36ee316 100644 --- a/lua/plugins/default.lua +++ b/lua/plugins/default.lua @@ -1,7 +1,7 @@ return { --[=[ Visuals ]=]-- { - "morhetz/gruvbox", + "morhetz/gruvbox", -- Color theme lazy = false, priority = 1000, init = function() @@ -15,8 +15,8 @@ return { --[=[ Quality of life ]=]-- { - "nvim-treesitter/nvim-treesitter", - build = ":TSUpdate", + "nvim-treesitter/nvim-treesitter", -- Advanced syntax parsing + build = ":TSUpdate", opts = { ensure_installed = "all", ignore_install = { "liquidsoap", "norg", "tlaplus", "yaml" }, -- Can't compile @@ -29,7 +29,7 @@ return { end, }, { - "preservim/nerdtree", + "preservim/nerdtree", -- Browse directories dependencies = { "ryanoasis/vim-devicons", }, @@ -40,13 +40,31 @@ return { vim.g.NERDTreeIgnore = { "\\.swp$", "\\~$" } -- Ignore file, ending with .swp and ~ end, }, - { "nvim-tree/nvim-web-devicons", }, - { "numToStr/Comment.nvim", }, - { "mbbill/undotree", }, - { "godlygeek/tabular", }, - { "tpope/vim-eunuch", }, { - "kylechui/nvim-surround", + "nvim-tree/nvim-web-devicons", -- NERDFont icons + }, + { + "numToStr/Comment.nvim", -- Toggle comments + }, + { + "mbbill/undotree", -- Easily interact with undo history + keys = {{ "<F5>", ":UndotreeToggle<CR>" }}, + init = function() + vim.g.undotree_WindowLayout = 2 + vim.g.undotree_ShortIndicators = 1 -- e.g. using 'd' instead of 'days' to save some space. + vim.g.undotree_SetFocusWhenToggle = 1 -- if set, let undotree window get focus after being opened, otherwise focus will stay in current window. + vim.g.undotree_TreeNodeShape = '*' + vim.g.undotree_DiffCommand = "diff" + end, + }, + { + "godlygeek/tabular", -- Line up text to a given character + }, + { + "tpope/vim-eunuch", -- UNIX commands in vim + }, + { + "kylechui/nvim-surround", -- Surround text version = "*", event = "VeryLazy", dependencies = { @@ -56,10 +74,20 @@ return { require("nvim-surround").setup(opts) end, }, - { "windwp/nvim-ts-autotag", }, - { "ntpeters/vim-better-whitespace", }, + { + "windwp/nvim-ts-autotag", -- Auto-add and edit HTML tags + }, + { + "ntpeters/vim-better-whitespace", -- Highlight in red trailing whitespaces + }, --[=[ Development-specific ]=]-- - { "zivyangll/git-blame.vim", }, - { "wakatime/vim-wakatime", lazy = false, }, + { + "zivyangll/git-blame.vim", -- Show last commit on line + keys = {{ "<F8>", ":<C-u>call gitblame#echo()<CR>" }}, + }, + { + "wakatime/vim-wakatime", -- WakaTime tracking + lazy = false, + }, } |
