add impatient.nvim and filetype.nvim | improve startuptime
This commit is contained in:
parent
50aa25f307
commit
e8b31c9308
6
init.lua
6
init.lua
@ -1,3 +1,9 @@
|
|||||||
|
local present, impatient = pcall(require, "impatient")
|
||||||
|
|
||||||
|
if present then
|
||||||
|
impatient.enable_profile()
|
||||||
|
end
|
||||||
|
|
||||||
local core_modules = {
|
local core_modules = {
|
||||||
"core.options",
|
"core.options",
|
||||||
"core.autocmds",
|
"core.autocmds",
|
||||||
|
@ -68,7 +68,7 @@ M.plugins = {
|
|||||||
lspsignature = true, -- lsp enhancements
|
lspsignature = true, -- lsp enhancements
|
||||||
vim_matchup = true, -- improved matchit
|
vim_matchup = true, -- improved matchit
|
||||||
cmp = true,
|
cmp = true,
|
||||||
snippets = true,
|
snippets = false,
|
||||||
nvimtree = true,
|
nvimtree = true,
|
||||||
autopairs = true,
|
autopairs = true,
|
||||||
},
|
},
|
||||||
|
@ -49,6 +49,7 @@ g.mapleader = options.mapleader
|
|||||||
|
|
||||||
-- disable some builtin vim plugins
|
-- disable some builtin vim plugins
|
||||||
local disabled_built_ins = {
|
local disabled_built_ins = {
|
||||||
|
"did_load_filetypes",
|
||||||
"2html_plugin",
|
"2html_plugin",
|
||||||
"getscript",
|
"getscript",
|
||||||
"getscriptPlugin",
|
"getscriptPlugin",
|
||||||
|
@ -15,6 +15,8 @@ return packer.startup(function()
|
|||||||
-- this is the nvchad core repo containing utilities for some features like theme swticher, no need to lazy load
|
-- this is the nvchad core repo containing utilities for some features like theme swticher, no need to lazy load
|
||||||
use "Nvchad/extensions"
|
use "Nvchad/extensions"
|
||||||
use "nvim-lua/plenary.nvim"
|
use "nvim-lua/plenary.nvim"
|
||||||
|
use "lewis6991/impatient.nvim"
|
||||||
|
use "nathom/filetype.nvim"
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"wbthomason/packer.nvim",
|
"wbthomason/packer.nvim",
|
||||||
|
Loading…
Reference in New Issue
Block a user