refactor(nvim): yank unused plugins, better lazy load
This commit is contained in:
parent
d55a635a59
commit
1dce9b65c3
@ -285,19 +285,6 @@ return packer.startup({
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Workspaces
|
|
||||||
use({
|
|
||||||
"natecraddock/workspaces.nvim",
|
|
||||||
config = function()
|
|
||||||
local workspaces = require("workspaces")
|
|
||||||
workspaces.setup({
|
|
||||||
hooks = {
|
|
||||||
open = "Neotree",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Lspconfig
|
-- Lspconfig
|
||||||
use({
|
use({
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
@ -325,20 +312,6 @@ return packer.startup({
|
|||||||
end,
|
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
|
-- Better LSP Virtual Text Lines
|
||||||
use({
|
use({
|
||||||
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||||
@ -496,7 +469,7 @@ return packer.startup({
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Stabalize closing buffers
|
-- Stabilize closing buffers
|
||||||
use({
|
use({
|
||||||
"luukvbaal/stabilize.nvim",
|
"luukvbaal/stabilize.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
@ -631,20 +604,7 @@ return packer.startup({
|
|||||||
use({
|
use({
|
||||||
"echasnovski/mini.nvim",
|
"echasnovski/mini.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
-- Underline matching words to word undor cursor
|
|
||||||
require("mini.cursorword").setup({})
|
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,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -669,15 +629,6 @@ return packer.startup({
|
|||||||
end,
|
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
|
-- Multiple cursor/multiple visual selection support
|
||||||
use({
|
use({
|
||||||
"mg979/vim-visual-multi",
|
"mg979/vim-visual-multi",
|
||||||
@ -727,11 +678,6 @@ return packer.startup({
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Mundo, browse and apply undo history
|
|
||||||
use({
|
|
||||||
"simnalamburt/vim-mundo",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Allows repeating actions and more
|
-- Allows repeating actions and more
|
||||||
use({
|
use({
|
||||||
"anuvyklack/hydra.nvim",
|
"anuvyklack/hydra.nvim",
|
||||||
@ -766,6 +712,7 @@ return packer.startup({
|
|||||||
-- Better list continuation
|
-- Better list continuation
|
||||||
use({
|
use({
|
||||||
"gaoDean/autolist.nvim",
|
"gaoDean/autolist.nvim",
|
||||||
|
ft = "markdown",
|
||||||
config = function()
|
config = function()
|
||||||
require("autolist").setup({})
|
require("autolist").setup({})
|
||||||
end,
|
end,
|
||||||
@ -795,6 +742,7 @@ return packer.startup({
|
|||||||
-- Vim Latex Support
|
-- Vim Latex Support
|
||||||
use({
|
use({
|
||||||
"lervag/vimtex",
|
"lervag/vimtex",
|
||||||
|
ft = "tex",
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.vimtext_view_method = "zathura"
|
vim.g.vimtext_view_method = "zathura"
|
||||||
vim.g.vimtex_view_general_viewer = "zathura"
|
vim.g.vimtex_view_general_viewer = "zathura"
|
||||||
|
Loading…
Reference in New Issue
Block a user