Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlight is broke #42

Open
ruanyouxing opened this issue Jul 15, 2022 · 5 comments
Open

highlight is broke #42

ruanyouxing opened this issue Jul 15, 2022 · 5 comments

Comments

@ruanyouxing
Copy link

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
Copy link
Owner

SmiteshP commented Jul 17, 2022

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

@ruanyouxing
Copy link
Author

ruanyouxing commented Jul 17, 2022

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

@ruanyouxing
Copy link
Author

uh hello?

@SmiteshP
Copy link
Owner

SmiteshP commented Sep 4, 2022

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
Copy link
Author

ruanyouxing commented Sep 6, 2022

what do you mean 'only'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants