style: remove some vim.lsp calls during startup

This commit is contained in:
Folke Lemaitre
2025-10-26 16:04:43 +01:00
parent d72127eb93
commit 29fb479522
2 changed files with 1 additions and 9 deletions

View File

@@ -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

View File

@@ -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()