summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/plugins/indent_blankline.lua
blob: ed3c3280b687d2bbfb047272f798862f9a2ca2b1 (plain)
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
local M = {
	"lukas-reineke/indent-blankline.nvim",
	version = "*",
	event = "BufReadPre",
}

function M.init()
	vim.api.nvim_set_hl(0, "IndentContext1", { fg = "Red", default = true })
	vim.api.nvim_set_hl(0, "IndentContext2", { fg = "Brown", default = true })
	vim.api.nvim_set_hl(0, "IndentContext3", { fg = "Yellow", default = true })
	vim.api.nvim_set_hl(0, "IndentContext4", { fg = "Green", default = true })
	vim.api.nvim_set_hl(0, "IndentContext5", { fg = "Cyan", default = true })
	vim.api.nvim_set_hl(0, "IndentContext6", { fg = "Blue", default = true })
	vim.api.nvim_set_hl(0, "IndentContext7", { fg = "Magenta", default = true })
end

function M.config()
	local indent_blankline = require("indent_blankline")

	indent_blankline.setup({
		context_highlight_list = {
			"IndentContext1",
			"IndentContext2",
			"IndentContext3",
			"IndentContext4",
			"IndentContext5",
			"IndentContext6",
			"IndentContext7",
		},
		space_char_blankline = " ",
		show_end_of_line = true,
		show_current_context = true,
		use_treesitter = true,
		use_treesitter_scope = true,
	})
end

return M