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

This commit is contained in:
Folke Lemaitre committed 2023-02-28 09:51:29 +01:00
1 parent fc765e9e3d
commit d97bf66eed
1 file changed
+3 -1
+3 -1
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,
},