🐛 fix(nvim): scrollbar and breadcrumbs extras now installs a different plugin depending on the version

This commit is contained in:
Sergio Laín 2023-11-26 01:38:01 +01:00
parent d568158fa4
commit cb68f38aeb
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 41 additions and 49 deletions

View file

@ -1,22 +1,17 @@
local version = vim.fn.has("nvim-0.10")
-- if version then
-- return {
-- {
-- "Bekaboo/dropbar.nvim",
-- event = "BufRead",
-- opts = {
-- sources = {
-- terminal = {
-- name = "",
-- },
-- },
-- },
-- },
-- }
-- else
if vim.fn.has("nvim-0.10") == 1 then
return {
"Bekaboo/dropbar.nvim",
event = "BufRead",
opts = {
sources = {
terminal = {
name = "",
},
},
},
}
else
return {
{
"utilyre/barbecue.nvim",
name = "barbecue",
version = "*",
@ -26,6 +21,5 @@ return {
},
event = "BufRead",
opts = {},
},
}
-- end
end

View file

@ -1,14 +1,12 @@
local version = vim.fn.has("nvim-0.10")
-- if version then
-- return {
-- "lewis6991/satellite.nvim",
-- opts = {
-- excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" },
-- },
-- event = "BufRead",
-- }
-- else
if vim.fn.has("nvim-0.10") == 1 then
return {
"lewis6991/satellite.nvim",
opts = {
excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" },
},
event = "BufRead",
}
else
return {
"dstein64/nvim-scrollview",
event = "BufReadPost",
@ -25,4 +23,4 @@ return {
})
end,
}
-- end
end