fix: lsp not autostart, fix by Buf{ReadPre,NewFile}

This commit is contained in:
leafee98 2023-12-15 20:29:39 +08:00
parent 22b8eb3178
commit 78cc4cc7d7

View file

@ -48,7 +48,8 @@ return {
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
},
event = "VeryLazy",
event = { "BufReadPre", "BufNewFile" },
cmd = { "LspInfo", "LspInstall", "LspUninstall" },
config = function (_, opts)
local capabilities = require("cmp_nvim_lsp").default_capabilities()