2021-07-08 16:08:10 -04:00
|
|
|
local function blankline_options()
|
|
|
|
vim.g.indent_blankline_char = '│'
|
2021-07-10 12:40:43 -04:00
|
|
|
-- vim.g.indent_blankline_space_char = '·'
|
2021-07-08 16:08:10 -04:00
|
|
|
vim.g.indent_blankline_show_first_indent_level = true
|
|
|
|
vim.g.indent_blankline_filetype_exclude = {
|
|
|
|
'startify',
|
|
|
|
'dashboard',
|
|
|
|
'dotooagenda',
|
|
|
|
'log',
|
|
|
|
'fugitive',
|
|
|
|
'gitcommit',
|
|
|
|
'packer',
|
|
|
|
'vimwiki',
|
|
|
|
'markdown',
|
|
|
|
'json',
|
|
|
|
'txt',
|
|
|
|
'vista',
|
|
|
|
'help',
|
|
|
|
'todoist',
|
|
|
|
'NvimTree',
|
|
|
|
'peekaboo',
|
|
|
|
'git',
|
|
|
|
'TelescopePrompt',
|
|
|
|
'undotree',
|
|
|
|
'flutterToolsOutline',
|
|
|
|
'' -- for all buffers without a file type
|
|
|
|
}
|
|
|
|
vim.g.indent_blankline_buftype_exclude = {'terminal', 'nofile'}
|
|
|
|
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
|
|
|
vim.g.indent_blankline_show_current_context = true
|
|
|
|
vim.g.indent_blankline_context_patterns = {
|
|
|
|
'class',
|
|
|
|
'function',
|
|
|
|
'method',
|
|
|
|
'block',
|
|
|
|
'list_literal',
|
|
|
|
'selector',
|
|
|
|
'^if',
|
|
|
|
'^table',
|
|
|
|
'if_statement',
|
|
|
|
'while',
|
|
|
|
'for'
|
|
|
|
}
|
2021-07-10 12:40:43 -04:00
|
|
|
|
|
|
|
-- Refresh often, since it is lazy-loaded
|
|
|
|
-- vim.cmd('autocmd CursorMoved * IndentBlanklineRefresh')
|
2021-07-08 16:08:10 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
blankline_options()
|