Switch Colorscheme #76
-
|
hi @MunifTanjim, how can I retrieve RGB color from a syntax highlighting group? - because I am using multiple colorschemes, and switch it inside nvim, so I want statusline to be compatible with the colorscheme. Originally posted by @linrongbin16 in #5 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
It is mostly documented here: https://github.com/MunifTanjim/nougat.nvim/tree/main/lua/nougat/color First of all, use local color = require('nougat.color').get()If the colorscheme you're using has If your colorscheme does neither of those, you can create the local mod = {}
function mod.get()
---@class nougat.color.name_of_colorscheme: nougat.color
local color = { accent = {} }
-- set the values here
return color
end
return modWith that setup, @linrongbin16 hope that helps. Let me know if you have any other questions. |
Beta Was this translation helpful? Give feedback.
It is mostly documented here: https://github.com/MunifTanjim/nougat.nvim/tree/main/lua/nougat/color
First of all, use
nougat.colormodule for picking color for different items:If the colorscheme you're using has
nougat.color.<colorscheme>module, where<colorscheme>is the name (e.g.gruvbox),nougat.nvimwill rea…