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

View File

@@ -38,7 +38,9 @@ return {
{ "rafamadriz/friendly-snippets", enabled = false },
{ "JoosepAlviste/nvim-ts-context-commentstring", enabled = false },
{ "windwp/nvim-ts-autotag", enabled = false},
{ "windwp/nvim-ts-autotag", enabled = false },
{ "saadparwaiz1/cmp_luasnip", enabled = false },
{ "L3MON4D3/LuaSnip", enabled = true },
}
-- if true then return {} end

View File

@@ -1,4 +0,0 @@
return {
"pteroctopus/faster.nvim",
opts = {},
}

View File

@@ -1,6 +1,6 @@
return {
"brenton-leighton/multiple-cursors.nvim",
event = 'VimEnter',
event = "BufRead",
cmd = {
"MultipleCursorsAddDown",
"MultipleCursorsAddUp",

View File

@@ -1,4 +1,4 @@
return {
"mg979/vim-visual-multi",
event = "VeryLazy",
event = "BufRead",
}