refactor(nvim): yank unused plugins, better lazy load

This commit is contained in:
Price Hiller 2022-09-06 03:45:26 -05:00
parent d55a635a59
commit 1dce9b65c3

View File

@ -285,19 +285,6 @@ return packer.startup({
end,
})
-- Workspaces
use({
"natecraddock/workspaces.nvim",
config = function()
local workspaces = require("workspaces")
workspaces.setup({
hooks = {
open = "Neotree",
},
})
end,
})
-- Lspconfig
use({
"neovim/nvim-lspconfig",
@ -325,20 +312,6 @@ return packer.startup({
end,
})
-- Show lsp diags at bottom
use({
"folke/trouble.nvim",
config = function()
require("trouble").setup()
end,
cmd = {
"Trouble",
"TroubleClose",
"TroubleToggle",
"TroubleRefresh",
},
})
-- Better LSP Virtual Text Lines
use({
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
@ -496,7 +469,7 @@ return packer.startup({
end,
})
-- Stabalize closing buffers
-- Stabilize closing buffers
use({
"luukvbaal/stabilize.nvim",
config = function()
@ -631,20 +604,7 @@ return packer.startup({
use({
"echasnovski/mini.nvim",
config = function()
-- Underline matching words to word undor cursor
require("mini.cursorword").setup({})
-- Surround operators
-- require("mini.surround").setup({
-- mappings = {
-- add = "gs",
-- delete = "ds",
-- find = "",
-- find_left = "",
-- highlight = "",
-- replace = "cs",
-- update_n_lines = "",
-- },
-- })
end,
})
@ -669,15 +629,6 @@ return packer.startup({
end,
})
-- Center code, make it visually prettier
use({
"folke/zen-mode.nvim",
config = function()
require("zen-mode").setup({})
end,
cmd = "ZenMode",
})
-- Multiple cursor/multiple visual selection support
use({
"mg979/vim-visual-multi",
@ -727,11 +678,6 @@ return packer.startup({
end,
})
-- Mundo, browse and apply undo history
use({
"simnalamburt/vim-mundo",
})
-- Allows repeating actions and more
use({
"anuvyklack/hydra.nvim",
@ -766,6 +712,7 @@ return packer.startup({
-- Better list continuation
use({
"gaoDean/autolist.nvim",
ft = "markdown",
config = function()
require("autolist").setup({})
end,
@ -795,6 +742,7 @@ return packer.startup({
-- Vim Latex Support
use({
"lervag/vimtex",
ft = "tex",
config = function()
vim.g.vimtext_view_method = "zathura"
vim.g.vimtex_view_general_viewer = "zathura"