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:
parent
f03c8e6ea2
commit
e31f6b2380
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user