fix(indentscope): dont use indentscope/blankline for lazyterm/toggleterm/notify

This commit is contained in:
Folke Lemaitre 2023-06-03 10:48:23 +02:00
parent bb4a7fe410
commit 15f5a229d9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -169,7 +169,18 @@ return {
opts = { opts = {
-- char = "▏", -- char = "▏",
char = "", char = "",
filetype_exclude = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" }, filetype_exclude = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
show_trailing_blankline_indent = false, show_trailing_blankline_indent = false,
show_current_context = false, show_current_context = false,
}, },
@ -187,7 +198,18 @@ return {
}, },
init = function() init = function()
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason", "notify" }, pattern = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
callback = function() callback = function()
vim.b.miniindentscope_disable = true vim.b.miniindentscope_disable = true
end, end,