Skip to content

Instantly share code, notes, and snippets.

View daisonth's full-sized avatar

Daison Thomas daisonth

View GitHub Profile
@mactep
mactep / conceal.lua
Last active May 2, 2024 18:44
Conceal html class attribute values using treesitter
-- THIS IS DEPRECATED, USE THE FILE BELOW
-- should get bufnr from autocmd or something
-- conceal only accepts one character
-- thanks to u/Rafat913 for many suggestions and tips
local namespace = vim.api.nvim_create_namespace("class_conceal")
local group = vim.api.nvim_create_augroup("class_conceal", { clear = true })
local conceal_html_class = function(bufnr)