1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00
jdhao-nvim-config/lua/config/indent-blankline.lua
jdhao 0477364023 Only use indent-blankline on normal mode
In insert mode, it is distracting for editing.
2021-10-20 00:49:18 +08:00

16 lines
363 B
Lua

require("indent_blankline").setup {
char = "|",
show_end_of_line = false,
disable_with_nolist = true,
buftype_exclude = {"terminal"},
filetype_exclude = { "help", "startify", "git", "markdown" },
}
vim.cmd[[
augroup indent_blankline
autocmd!
autocmd InsertEnter * IndentBlanklineDisable
autocmd InsertLeave * IndentBlanklineEnable
augroup END
]]