Hyprland-dotfiles/nvim/lua/modules/configs/ui/paint.lua
2024-07-21 02:51:17 -04:00

21 lines
537 B
Lua

return function()
require("modules.utils").load_plugin("paint", {
---type PaintHighlight[]
highlights = {
{
-- filter can be a table of buffer options that should match,
-- or a function called with buf as param that should return true.
-- The example below will paint @something in comments with Constant
filter = { filetype = "lua" },
pattern = "%s*%-%-%-%s*(@%w+)",
hl = "Constant",
},
{
filter = { filetype = "python" },
pattern = "%s*([_%w]+:)",
hl = "Constant",
},
},
})
end