fix(mini-indentscope): disable indentscope for filetypes during init. Fixes #318

This commit is contained in:
Folke Lemaitre 2023-02-28 09:51:29 +01:00
parent fc765e9e3d
commit d97bf66eed
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -182,13 +182,15 @@ return {
symbol = "",
options = { try_as_border = true },
},
config = function(_, opts)
init = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
callback = function()
vim.b.miniindentscope_disable = true
end,
})
end,
config = function(_, opts)
require("mini.indentscope").setup(opts)
end,
},