astro-nvim-v3 - reduce startup time

This commit is contained in:
huyjaky
2025-01-18 12:41:22 +07:00
parent 8020aae0ce
commit fe00af8147
6 changed files with 9 additions and 20 deletions

View File

@@ -5,22 +5,15 @@ return {
symbol_map = require "plugins.configs.ui.lspkind",
},
},
{
"hrsh7th/cmp-cmdline",
event = "CmdlineEnter",
},
{
"github/copilot.vim",
event = "BufRead",
},
{ "hrsh7th/cmp-cmdline", event = "CmdlineEnter" },
{ "github/copilot.vim", event = "BufRead" },
{ "hrsh7th/cmp-buffer", event = "BufRead" },
{ "hrsh7th/cmp-path", event = "BufRead" },
{
"hrsh7th/nvim-cmp",
event = "VimEnter",
depedencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"saadparwaiz1/cmp_luasnip",
},
opts = function(_, opts)
local cmp = require "cmp"
@@ -33,7 +26,6 @@ return {
cmp.config.sources {
{ name = "nvim_lsp", priority = 1000 },
{ name = "luasnip", priority = 900 },
{ name = "cmdline", priority = 800 },
{ name = "buffer", priority = 500 },
{ name = "path", priority = 250 },