symbols: Setup basic highlighting for icons (using tree-sitter)

Color == cool
This commit is contained in:
simrat39
2021-04-18 21:15:06 -07:00
parent 9a95df9706
commit 7b302a938b
2 changed files with 34 additions and 31 deletions

View File

@@ -89,9 +89,14 @@ end
local function setup_highlights()
-- markers
highlight_text(markers.middle, markers.middle, "Comment")
highlight_text(markers.horizontal, markers.horizontal, "Comment")
highlight_text(markers.bottom, markers.bottom, "Comment")
highlight_text("marker_middle", markers.middle, "Comment")
highlight_text("markers_horizontal", markers.horizontal, "Comment")
highlight_text("markers_bottom", markers.bottom, "Comment")
for _, value in ipairs(symbols.kinds) do
local symbol = symbols[value]
highlight_text(value, symbol.icon, symbol.hl)
end
end
local function write(outline_items, bufnr, winnr)