From d77645817bb2cd1ad8291be44cd02e1fd4e52893 Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Sun, 2 Jul 2023 23:00:23 +0200 Subject: [PATCH] fix(nvim-scrollbar): Fix issue with is_available calls (#351) * fix(nvim-scrollbar): Fix issue with is_available calls * fix(nvim-scrollbar): extend opts with function * chore(nvim-scrollbar): Remove unnessecary import --- .../scrolling/nvim-scrollbar/init.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lua/astrocommunity/scrolling/nvim-scrollbar/init.lua b/lua/astrocommunity/scrolling/nvim-scrollbar/init.lua index 24f198fec..4c4306d03 100644 --- a/lua/astrocommunity/scrolling/nvim-scrollbar/init.lua +++ b/lua/astrocommunity/scrolling/nvim-scrollbar/init.lua @@ -1,11 +1,13 @@ return { "petertriho/nvim-scrollbar", - opts = { - handlers = { - gitsigns = require("astronvim.utils").is_available "gitsigns.nvim", - search = require("astronvim.utils").is_available "nvim-hlslens", - ale = require("astronvim.utils").is_available "ale", - }, - }, + opts = function(_, opts) + require("astronvim.utils").extend_tbl(opts, { + handlers = { + gitsigns = require("astronvim.utils").is_available "gitsigns.nvim", + search = require("astronvim.utils").is_available "nvim-hlslens", + ale = require("astronvim.utils").is_available "ale", + }, + }) + end, event = "User AstroFile", }