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 = {
"core.options",
"core.autocmds",

View file

@ -68,7 +68,7 @@ M.plugins = {
lspsignature = true, -- lsp enhancements
vim_matchup = true, -- improved matchit
cmp = true,
snippets = true,
snippets = false,
nvimtree = true,
autopairs = true,
},

View file

@ -49,6 +49,7 @@ g.mapleader = options.mapleader
-- disable some builtin vim plugins
local disabled_built_ins = {
"did_load_filetypes",
"2html_plugin",
"getscript",
"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
use "Nvchad/extensions"
use "nvim-lua/plenary.nvim"
use "lewis6991/impatient.nvim"
use "nathom/filetype.nvim"
use {
"wbthomason/packer.nvim",