Skip to content

How to change colors for mode and diagnostic_count? #74

Answered by MunifTanjim
divramod asked this question in Q&A
Discussion options

You must be logged in to vote

Yes absolutely.


For mode:

local color = require("nougat.color").get()

local mode = nut.mode.create({
  config = {
    highlight = {
      insert = { bg = color.blue, fg = color.bg },
      -- ...
    },
  },
})

Ref:

  • ---@class nougat.nut.mode_config.config
    ---@field text? table<string, string>
    ---@field highlight? table<'normal'|'visual'|'insert'|'replace'|'commandline'|'terminal'|'inactive', nougat_hl_def>
    ---@class nougat_nut_mode_config: nougat_item_config__function
    ---@field cache? nil
    ---@field config? nougat.nut.mode_config.config|nougat.nut.mode_config.config[]
    ---@field co…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MunifTanjim
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #71 on December 17, 2023 07:21.