Skip to content

Commit

Permalink
fix(nvim-scrollbar): Fix issue with is_available calls (#351)
Browse files Browse the repository at this point in the history
* fix(nvim-scrollbar): Fix issue with is_available calls

* fix(nvim-scrollbar): extend opts with function

* chore(nvim-scrollbar): Remove unnessecary import
  • Loading branch information
Uzaaft authored Jul 2, 2023
1 parent a5bb535 commit d776458
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lua/astrocommunity/scrolling/nvim-scrollbar/init.lua
Original file line number Diff line number Diff line change
@@ -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",
}

0 comments on commit d776458

Please sign in to comment.