mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(mini-indentscope): disable indentscope for filetypes during init. Fixes #318
This commit is contained in:
parent
fc765e9e3d
commit
d97bf66eed
1 changed files with 3 additions and 1 deletions
|
@ -182,13 +182,15 @@ return {
|
||||||
symbol = "│",
|
symbol = "│",
|
||||||
options = { try_as_border = true },
|
options = { try_as_border = true },
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
init = function()
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
|
pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.b.miniindentscope_disable = true
|
vim.b.miniindentscope_disable = true
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
end,
|
||||||
|
config = function(_, opts)
|
||||||
require("mini.indentscope").setup(opts)
|
require("mini.indentscope").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue