🐛 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
return {
{
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,28 +1,26 @@
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
return {
"dstein64/nvim-scrollview",
event = "BufReadPost",
keys = { { "<leader>uS", "<cmd>ScrollViewToggle<CR>", desc = "Toggle Scrollview" } },
config = function()
require("scrollview").setup({
if vim.fn.has("nvim-0.10") == 1 then
return {
"lewis6991/satellite.nvim",
opts = {
excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" },
signs_column = 0,
winblend = 25,
diagnostics_error_symbol = "",
diagnostics_warn_symbol = "",
diagnostics_info_symbol = "",
diagnostics_hint_symbol = "",
})
end,
}
-- end
},
event = "BufRead",
}
else
return {
"dstein64/nvim-scrollview",
event = "BufReadPost",
keys = { { "<leader>uS", "<cmd>ScrollViewToggle<CR>", desc = "Toggle Scrollview" } },
config = function()
require("scrollview").setup({
excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" },
signs_column = 0,
winblend = 25,
diagnostics_error_symbol = "",
diagnostics_warn_symbol = "",
diagnostics_info_symbol = "",
diagnostics_hint_symbol = "",
})
end,
}
end