mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
style: remove some vim.lsp calls during startup
This commit is contained in:
@@ -5,7 +5,7 @@ if lazyvim_docs then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if LazyVim.has_extra("ai.copilot-native") then
|
if LazyVim.has_extra("ai.copilot-native") then
|
||||||
if not vim.lsp.inline_completion then
|
if vim.fn.has("nvim-0.12") == 0 then
|
||||||
LazyVim.error("You need Neovim >= 0.12 to use the `ai.copilot-native` extra.")
|
LazyVim.error("You need Neovim >= 0.12 to use the `ai.copilot-native` extra.")
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7,14 +7,6 @@ if vim.fn.has("nvim-0.11.2") == 0 then
|
|||||||
vim.fn.getchar()
|
vim.fn.getchar()
|
||||||
vim.cmd([[quit]])
|
vim.cmd([[quit]])
|
||||||
return {}
|
return {}
|
||||||
elseif not vim.lsp.is_enabled then
|
|
||||||
vim.schedule(function()
|
|
||||||
LazyVim.warn({
|
|
||||||
"You're using an **old** `nightly` version of **Neovim**",
|
|
||||||
"Please update to a recent `nightly`,",
|
|
||||||
"or a stable version (`>= 0.11.2`).",
|
|
||||||
})
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
require("lazyvim.config").init()
|
require("lazyvim.config").init()
|
||||||
|
|||||||
Reference in New Issue
Block a user