lazyload nvimtree to speed up wsl startup
This commit is contained in:
parent
6302098963
commit
43a119d3ad
3 changed files with 9 additions and 4 deletions
2
init.lua
2
init.lua
|
@ -8,11 +8,9 @@ require("user.navic")
|
||||||
require("user.cmp")
|
require("user.cmp")
|
||||||
require("user.lsp")
|
require("user.lsp")
|
||||||
require("user.telescope")
|
require("user.telescope")
|
||||||
require("user.treesitter")
|
|
||||||
require("user.autopairs")
|
require("user.autopairs")
|
||||||
require("user.comment")
|
require("user.comment")
|
||||||
require("user.gitsigns")
|
require("user.gitsigns")
|
||||||
require("user.nvimtree")
|
|
||||||
require("user.bufferline")
|
require("user.bufferline")
|
||||||
require("user.whitespace")
|
require("user.whitespace")
|
||||||
require("user.lualine")
|
require("user.lualine")
|
||||||
|
|
|
@ -3,7 +3,7 @@ if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
lines.register_lsp_virtual_lines()
|
lines.setup()
|
||||||
|
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
|
|
|
@ -115,7 +115,14 @@ return packer.startup(function(use)
|
||||||
use("lewis6991/gitsigns.nvim")
|
use("lewis6991/gitsigns.nvim")
|
||||||
|
|
||||||
-- Nvim-Tree
|
-- Nvim-Tree
|
||||||
use("kyazdani42/nvim-tree.lua")
|
use({
|
||||||
|
"kyazdani42/nvim-tree.lua",
|
||||||
|
opt = true,
|
||||||
|
cmd = { "NvimTreeToggle", "NvimTreeClose" },
|
||||||
|
config = function()
|
||||||
|
require("user.nvimtree")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Bufferline
|
-- Bufferline
|
||||||
use("akinsho/bufferline.nvim")
|
use("akinsho/bufferline.nvim")
|
||||||
|
|
Reference in a new issue