1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Only use indent-blankline on normal mode

In insert mode, it is distracting for editing.
This commit is contained in:
jdhao 2021-10-20 00:49:18 +08:00
parent 3ce1d8cc82
commit 0477364023

View File

@ -5,3 +5,11 @@ require("indent_blankline").setup {
buftype_exclude = {"terminal"},
filetype_exclude = { "help", "startify", "git", "markdown" },
}
vim.cmd[[
augroup indent_blankline
autocmd!
autocmd InsertEnter * IndentBlanklineDisable
autocmd InsertLeave * IndentBlanklineEnable
augroup END
]]