How to change colors for mode
and diagnostic_count
?
#74
-
hey hey, awesome plugin, thx for writing it! is it possible to change the colors for the different modes like normal, visual, insert? the same goes for the diagnostic_count? thx again for the plugin! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
#6 isn't this what you want? |
Beta Was this translation helpful? Give feedback.
-
Yes absolutely. For local color = require("nougat.color").get()
local mode = nut.mode.create({
config = {
highlight = {
insert = { bg = color.blue, fg = color.bg },
-- ...
},
},
}) Ref:
For local diagnostic_count = nut.buf.diagnostic_count.create({
hidden = nut.buf.diagnostic_count.hidden.if_zero(),
hl = { bg = color.bg3 },
prefix = " ",
suffix = " ",
config = {
error = { prefix = " ", fg = color.red },
warn = { prefix = " ", fg = color.yellow },
info = { prefix = " ", fg = color.blue },
hint = { prefix = " ", fg = color.green },
},
}) Ref:
|
Beta Was this translation helpful? Give feedback.
-
Here's an example for nougat.nvim/examples/bubbly.lua Lines 148 to 176 in 6c7f542 |
Beta Was this translation helpful? Give feedback.
Yes absolutely.
For
mode
:Ref:
nougat.nvim/lua/nougat/nut/mode.lua
Lines 7 to 16 in 6c7f542