-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
indent-line.lua
41 lines (34 loc) · 942 Bytes
/
indent-line.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
local config = require('one.config').config
local colors = config.colors
local M = {
'lukas-reineke/indent-blankline.nvim',
desc = 'Show indent line',
after = 'nvim-treesitter',
tag = 'v2.20.8',
highlights = {
IndentBlanklineChar = { fg = colors.grey1 },
IndentBlanklineContextChar = { fg = colors.purple },
},
}
M.defaultConfig = {
'indentLine',
{
line = '▏', -- '┊', '', '⎜', '⎸', '│', '⎜', '⎜', '⎜'
excludeFileType = {
'alpha', -- goolord/alpha-nvim, see plugins/alpha.lua
},
opts = { -- :h indent_blankline
-- space_char_blankline = " ",
show_current_context = true,
show_current_context_start = false,
},
},
}
function M.config()
local conf = config.indentLine
vim.g.indent_blankline_char = conf.line
vim.g.indent_blankline_context_char = conf.line
vim.g.indent_blankline_filetype_exclude = conf.excludeFileType
require('indent_blankline').setup(conf.opts)
end
return M