From 83de07ad02d63aa2a69020a157d8e2bdc05246a8 Mon Sep 17 00:00:00 2001 From: vladstojna Date: Tue, 18 Apr 2023 21:06:43 +0100 Subject: [PATCH] add additional plugins --- lua/custom/plugins/init.lua | 93 +++++++++++++++++++++++++++++++++++-- 1 file changed, 90 insertions(+), 3 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index f140c790..31653cfb 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -7,15 +7,102 @@ return { "nvim-treesitter/nvim-treesitter-context", "theprimeagen/harpoon", "mbbill/undotree", - "windwp/nvim-autopairs", "RRethy/vim-illuminate", "ahmedkhalf/project.nvim", "famiu/bufdelete.nvim", - + "tpope/vim-repeat", + "JoosepAlviste/nvim-ts-context-commentstring", + { + "dstein64/vim-startuptime", + cmd = "StartupTime", + config = function() + vim.g.startuptime_tries = 10 + end, + }, + { + "windwp/nvim-spectre", + keys = { + { + "sr", + function() require("spectre").open() end, + desc = "[R]eplace in files (Spectre)" + }, + }, + }, + { + "folke/persistence.nvim", + event = "BufReadPre", + opts = { options = { "buffers", "curdir", "tabpages", "winsize", "help", "globals" } }, + keys = { + { "ps", function() require("persistence").load() end, desc = "Restore Session" }, + { "pl", function() require("persistence").load({ last = true }) end, desc = "Restore Last Session" }, + { "pd", function() require("persistence").stop() end, desc = "Don't Save Current Session" }, + }, + }, { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons", }, - } + opts = { + use_diagnostic_signs = true, + }, + }, + { + "rcarriga/nvim-notify", + keys = { + { + "dn", + function() + require("notify").dismiss({ silent = true, pending = true }) + end, + desc = "[D]elete all [N]otifications", + }, + }, + }, + { + "folke/todo-comments.nvim", + cmd = { "TodoTrouble", "TodoTelescope" }, + config = true, + keys = { + { "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" }, + { "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" }, + { "xt", "TodoTrouble", desc = "Todo (Trouble)" }, + { "xT", "TodoTrouble keywords=TODO,FIX,FIXME", desc = "Todo/Fix/Fixme (Trouble)" }, + { "st", "TodoTelescope", desc = "Todo" }, + { "sT", "TodoTelescope keywords=TODO,FIX,FIXME", desc = "Todo/Fix/Fixme" }, + }, + }, + { + 'echasnovski/mini.pairs', + version = false, + config = function() + require('mini.pairs').setup() + end + }, + { + 'echasnovski/mini.trailspace', + version = false, + config = function() + require('mini.trailspace').setup() + end + }, + { + 'echasnovski/mini.surround', + version = false, + opts = { + mappings = { + add = "gsa", -- Add surrounding in Normal and Visual modes + delete = "gsd", -- Delete surrounding + find = "gsf", -- Find surrounding (to the right) + find_left = "gsF", -- Find surrounding (to the left) + highlight = "gsh", -- Highlight surrounding + replace = "gsr", -- Replace surrounding + update_n_lines = "gsn", -- Update `n_lines` + }, + }, + config = function(_, opts) + require('mini.surround').setup(opts) + end + }, }