Skip to content

Commit

Permalink
feat(treesitter-context): add color for normal background (#564)
Browse files Browse the repository at this point in the history
* style(treesitter_context): format to allow more highlights

* feat(treesitter_context): add highlight for `TreesitterContextLineNumber`

* feat(treesitter_context): add border bottom for treesitter_context
window
  • Loading branch information
ofseed authored Aug 21, 2023
1 parent b9e4dae commit b1caff9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lua/catppuccin/groups/integrations/treesitter_context.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
local M = {}

function M.get()
return O.transparent_background and { TreesitterContextBottom = { sp = C.dim, style = { "underline" } } } or {}
return O.transparent_background and {
TreesitterContextBottom = { sp = C.dim, style = { "underline" } },
} or {
TreesitterContextBottom = {
sp = C.surface0,
style = { "underline" },
},
TreesitterContextLineNumber = {
fg = C.surface1,
bg = C.mantle,
},
}
end

return M

0 comments on commit b1caff9

Please sign in to comment.