onedarkpro.nvim icon indicating copy to clipboard operation
onedarkpro.nvim copied to clipboard

(support)add support for navic plugins

Open Leiyi548 opened this issue 1 year ago • 2 comments

This is a great plugin for navigating LSP symbols

Leiyi548 avatar Jul 20 '22 13:07 Leiyi548

I'd be more than willing to accept a pull request from yourself. Worth checking how other plugins are structured:

https://github.com/olimorris/onedarkpro.nvim/tree/main/lua/onedarkpro/plugins

olimorris avatar Jul 20 '22 14:07 olimorris

@Leiyi548 this is how I have my config for navic, btw:

  local ok, onedarkpro = pcall(load, "onedarkpro")
  if not ok then
    return
  end

  onedarkpro.setup({
    hlgroups = {
      NavicIconsClass = { fg = "${purple}" },
      NavicIconsFunction = { fg = "${blue}" },
      NavicIconsVariable = { fg = "${red}" },
      NavicIconsConstant = { fg = "${orange}" },
      NavicIconsBoolean = { fg = "${orange}" },
      NavicIconsString = { fg = "${green}" },
      NavicIconsObject = { fg = "${purple}" },
      NavicIconsProperty = { fg = "${fg}" },
      NavicText = { fg = "${gray}", style = "italic" },
      NavicSeparator = { fg = "${gray}" },
    },
  })
  vim.cmd("colorscheme onedarkpro")

olimorris avatar Jul 25 '22 17:07 olimorris

@Leiyi548 this has now been implemented.

olimorris avatar Aug 15 '22 18:08 olimorris