add impatient.nvim and filetype.nvim | improve startuptime

This commit is contained in:
siduck 2022-01-29 23:02:23 +05:30
parent 50aa25f307
commit e8b31c9308
4 changed files with 10 additions and 1 deletions

View File

@ -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",

View File

@ -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,
}, },

View File

@ -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",

View File

@ -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",