goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.92k stars 113 forks source link

[Help ] How to disable another plugin when in dashboard #43

Closed dinhmai74 closed 3 years ago

dinhmai74 commented 3 years ago

I am usingindent-blankline.nvim. And disable it when in the dashboard like this.

require("indent_blankline").setup { space_char_blankline = " ", show_current_context = true, context_patterns = { "def", "class", "return", "function", "method", "^if", "^while", "jsx_element", "^for" -- ... and you can add more }, buftype_exclude = {"terminal"}, filetype_exclude = {"dashboard"} } Did I do anything wrong? image

l-kershaw commented 3 years ago

The filetype of an alpha buffer is alpha not dashboard. So changing your filetype_exclude to {"alpha"} should work.

dinhmai74 commented 3 years ago

Cool, it works. Thank a lot @l-kershaw