Skip to content

[mini.indentscope] how does one disable indentscope in insert mode? #276

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

You must be logged in to vote

You'd need to define these autocommands before require('mini.indentscope').setup().
Try something like this:

vim.cmd([[
  augroup InsertDisable
    au!
    au InsertEnter * lua vim.b.miniindentscope_disable = true
    au InsertLeave * lua vim.b.miniindentscope_disable = false
  augroup END]]
)
require('mini.indentscope').setup()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mystilleef
Comment options

Answer selected by mystilleef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants