Skip to content

[mini.indentscope] Only trigger indentscope inside specific filetypes (+color change) #311

Closed Answered by echasnovski
lsig asked this question in Q&A
Discussion options

You must be logged in to vote

I was wondering if it was possible to specify the filetypes the indentscope gets activated and also if it is possible to change the color of the line from green to grey?

"Yes" to both questions.

Any 'mini.nvim' module can be disabled per buffer by setting buffer-local variable in the Lua form of vim.b.minixxx_disable = true (miniindentscope_disable in this case). Here is a list of common recipes for its automatic usage.

Color of that line is controlled by MiniIndentscopeSymbol highlight group (described in 'mini.indentscope' documentation). You can modify it to be any color using regular :highlight command or its vim.api.nvim_set_hl() Lua equivalent.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants