1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 09:00:06 +08:00

fix(scrollbar): check excluded_filetypes

This commit is contained in:
Eric Wong 2024-06-11 11:46:10 +08:00
parent f03c8e6ea2
commit e31f6b2380

View File

@ -82,6 +82,12 @@ local function create_scrollbar_buffer(size, lines)
end
function M.show()
for _, ft in ipairs(get('excluded_filetypes')) do
if ft == vim.o.filetype then
M.clear()
return
end
end
local saved_ei = vim.o.eventignore
vim.o.eventignore = 'all'
local winnr = vim.fn.winnr()