How do I disable mini.indentline in the dashboard #157
-
I am trying the following: vim.api.nvim_create_autocmd('Filetype', {
desc = "Disable mini.indentline by filetype",
group = vim.api.nvim_create_augroup('disable-miniindentline', { clear = true }),
pattern = { 'snacks_dashboard' },
callback = function(args)
vim.b[args.buf].miniindentscope_disable = true
end
}) but the pattern doesn't seem to match. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I want to disable other plugins as well there but it seems that the filetype="snacks_dashboard" is not emitted when initially started. If you open it manually with |
Beta Was this translation helpful? Give feedback.
-
I did this which looks to work for me
|
Beta Was this translation helpful? Give feedback.
-
@infinite-ops That is it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
A bit late to the party but if you're using lazy.nvim as a plugin manager you can also do {
'folke/snacks.nvim',
init = function()
vim.b.miniindentscope_disable = true
end,
opts = {
}
} This is exactly what the init function is useful for as per the spec: https://lazy.folke.io/spec#spec-setup |
Beta Was this translation helpful? Give feedback.
I did this which looks to work for me