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

@@ -24,7 +24,6 @@
"cyberdream.nvim": { "branch": "main", "commit": "cd3c2e7955034a5bec0e1beb9d7cb80c639ef5d5" }, "cyberdream.nvim": { "branch": "main", "commit": "cd3c2e7955034a5bec0e1beb9d7cb80c639ef5d5" },
"dressing.nvim": { "branch": "master", "commit": "3a45525bb182730fe462325c99395529308f431e" }, "dressing.nvim": { "branch": "master", "commit": "3a45525bb182730fe462325c99395529308f431e" },
"duplicate.nvim": { "branch": "main", "commit": "ab057af7872c44e6fbd48df9b03983c8e67c50a7" }, "duplicate.nvim": { "branch": "main", "commit": "ab057af7872c44e6fbd48df9b03983c8e67c50a7" },
"faster.nvim": { "branch": "main", "commit": "c3a5286765b43263791eb736affeb6fdff81e4ef" },
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" }, "flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
"gitsigns.nvim": { "branch": "main", "commit": "0b04035bb7b3c83e999b9676e2fb46fd0aa9f910" }, "gitsigns.nvim": { "branch": "main", "commit": "0b04035bb7b3c83e999b9676e2fb46fd0aa9f910" },

View File

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

View File

@@ -39,6 +39,8 @@ return {
{ "rafamadriz/friendly-snippets", enabled = false }, { "rafamadriz/friendly-snippets", enabled = false },
{ "JoosepAlviste/nvim-ts-context-commentstring", 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 -- if true then return {} end

View File

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

View File

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

View File

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