mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
fix: remove 0.9 compat
This commit is contained in:
parent
80573196a1
commit
3516ae736a
2 changed files with 0 additions and 49 deletions
|
|
@ -1,41 +0,0 @@
|
||||||
-- Compatibility with Neovim 0.9
|
|
||||||
return {
|
|
||||||
-- Use LuaSnip instead of native snippets
|
|
||||||
{ "garymjr/nvim-snippets", enabled = false },
|
|
||||||
{ import = "lazyvim.plugins.extras.coding.luasnip" },
|
|
||||||
|
|
||||||
-- Use nvim-cmp instead of blink.cmp
|
|
||||||
{ import = "lazyvim.plugins.extras.coding.nvim-cmp" },
|
|
||||||
|
|
||||||
-- Use mini.comment instead of ts-comments
|
|
||||||
{ "folke/ts-comments.nvim", enabled = false },
|
|
||||||
{ import = "lazyvim.plugins.extras.coding.mini-comment" },
|
|
||||||
|
|
||||||
-- Use neodev-types with lazydev
|
|
||||||
{ "folke/neodev.nvim", config = function() end },
|
|
||||||
{
|
|
||||||
"folke/lazydev.nvim",
|
|
||||||
opts = function(_, opts)
|
|
||||||
opts.library = opts.library or {}
|
|
||||||
table.insert(opts.library, { "neodev.nvim/types/stable" })
|
|
||||||
end,
|
|
||||||
config = function(_, opts)
|
|
||||||
-- force lazydev to load on Neovim 0.9
|
|
||||||
require("lazydev.config").have_0_10 = true
|
|
||||||
require("lazydev").setup(opts)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
dependencies = {},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- dummy import to save core imports
|
|
||||||
{
|
|
||||||
import = "foobar",
|
|
||||||
enabled = function()
|
|
||||||
LazyVim.plugin.save_core()
|
|
||||||
return false
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -42,15 +42,7 @@ end
|
||||||
---@type string[]
|
---@type string[]
|
||||||
extras = LazyVim.dedup(extras)
|
extras = LazyVim.dedup(extras)
|
||||||
|
|
||||||
local version = vim.version()
|
|
||||||
local v = version.major .. "_" .. version.minor
|
|
||||||
|
|
||||||
local compat = { "0_9" }
|
|
||||||
|
|
||||||
LazyVim.plugin.save_core()
|
LazyVim.plugin.save_core()
|
||||||
if vim.tbl_contains(compat, v) then
|
|
||||||
table.insert(extras, 1, "lazyvim.plugins.compat.nvim-" .. v)
|
|
||||||
end
|
|
||||||
if vim.g.vscode then
|
if vim.g.vscode then
|
||||||
table.insert(extras, 1, "lazyvim.plugins.extras.vscode")
|
table.insert(extras, 1, "lazyvim.plugins.extras.vscode")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue