fix: lsp not autostart, fix by Buf{ReadPre,NewFile}
This commit is contained in:
parent
22b8eb3178
commit
78cc4cc7d7
|
@ -48,7 +48,8 @@ return {
|
||||||
"hrsh7th/cmp-cmdline",
|
"hrsh7th/cmp-cmdline",
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
},
|
},
|
||||||
event = "VeryLazy",
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
cmd = { "LspInfo", "LspInstall", "LspUninstall" },
|
||||||
config = function (_, opts)
|
config = function (_, opts)
|
||||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue