SmiteshP / nvim-navic

Simple winbar/statusline plugin that shows your current code context
Apache License 2.0
1.44k stars 50 forks source link

highlight is broke #42

Open ruanyouxing opened 2 years ago

ruanyouxing commented 2 years ago

This is the output when i set highlight = true: true Otherwise when highlight = false, it seems worked like normal false And this is my config

use{'SmiteshP/nvim-navic',event = 'BufReadPre',config = ui.navic}

In function ui.navic:

require('nvim-navic').setup({
    icons = {
      File = ' ',
      Module = ' ',
      Namespace = ' ',
      Package = ' ',
      Class = ' ',
      Method = ' ',
      Property = ' ',
      Field = ' ',
      Constructor = ' ',
      Enum = '練',
      Interface = '練',
      Function = ' ',
      Variable = ' ',
      Constant = ' ',
      String = ' ',
      Number = ' ',
      Boolean = '◩ ',
      Array = ' ',
      Object = ' ',
      Key = ' ',
      Null = 'ﳠ ',
      EnumMember = ' ',
      Struct = ' ',
      Event = ' ',
      Operator = ' ',
   TypeParameter = ' ',
    },
    highlight = true,
    separator = ' >> ',
    depth_limit = 0,
    depth_limit_indicator = '..',
  })

vim.api.nvim_set_hl(0, "NavicIconsFile",          {default = true, bg = "#000000", fg = "#ffffff"})
vim.api.nvim_set_hl(0, "NavicIconsModule",        {default = true, bg = "#000000", fg = "#ffffff"})
vim.api.nvim_set_hl(0, "NavicIconsNamespace",     {default = true, bg = "#000000", fg = "#ffffff"})
vim.api.nvim_set_hl(0, "NavicIconsPackage",       {default = true, bg = "#000000", fg = "#ffffff"})
vim.api.nvim_set_hl(0, "NavicIconsClass",         {default = true, bg = "#000000", fg = "#ffffff"})
vim.api.nvim_set_hl(0, "NavicIconsMethod",        {default = true, bg = "#000000", fg = "#ffffff"})
...

(basically just copy-paste from default)
SmiteshP commented 2 years ago

Can you share which statusline plugin are you using? Also share the output of set statusline?

ruanyouxing commented 2 years ago

I'm using galaxyline Here's the output of set statusline: output

ruanyouxing commented 2 years ago

uh hello?

SmiteshP commented 2 years ago

Hey! Sorry for replying so late... Try keeping only nvim-navic in galaxyline to see if the issue persists... and then show the output of set statusline

ruanyouxing commented 2 years ago

what do you mean 'only'?