mirror of
https://github.com/catppuccin/nvim
synced 2024-09-16 13:24:08 +02:00
feat(treesitter-content): highlight line number (#709)
* fix:(treesitter-content): respect transparency * chore: format --------- Co-authored-by: Myles Mo <mylesmo.ash@gmail.com> Co-authored-by: mrtnvgr <root@unixis.fun>
This commit is contained in:
parent
d97387aea8
commit
4edca6bed2
1 changed files with 15 additions and 12 deletions
|
@ -1,18 +1,21 @@
|
|||
local M = {}
|
||||
|
||||
function M.get()
|
||||
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,
|
||||
},
|
||||
}
|
||||
return O.transparent_background
|
||||
and {
|
||||
TreesitterContextBottom = { sp = C.dim, style = { "underline" } },
|
||||
TreesitterContextLineNumber = { fg = C.rosewater },
|
||||
}
|
||||
or {
|
||||
TreesitterContextBottom = {
|
||||
sp = C.surface0,
|
||||
style = { "underline" },
|
||||
},
|
||||
TreesitterContextLineNumber = {
|
||||
fg = C.surface1,
|
||||
bg = C.mantle,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Reference in a new issue