zbirenbaum / neodim

Neovim plugin for dimming the highlights of unused functions, variables, parameters, and more
315 stars 10 forks source link

Highlighting conflicts with hlargs.nvim #19

Closed hacker-hackman closed 2 years ago

hacker-hackman commented 2 years ago

When I use Neodim with m-demare/hlargs.nvim I get dimmed unused arguments overridden by the former: Screenshot_2022-11-30_16-04-47

My Neodim config:


    use {
      'zbirenbaum/neodim',
      event = "LspAttach",
      config = function() require('me.plugins.neodim') end
    }

require("neodim").setup({
  blend_color = "#606060",
  alpha = 0,
  hide = {
    virtual_text = false,
    signs = false,
    underline = false,
  },
})

my hlargs config:


    use {
      'm-demare/hlargs.nvim',
      requires = { 'nvim-treesitter/nvim-treesitter' },
      after = 'nvim-treesitter',
      config = function() require('me.plugins.hlargs') end
    }

require('hlargs').setup({
  color = '#C6B7AB',
  excluded_filetypes = {},
  extras = {
    named_parameters = false,
  },
   excluded_argnames = {
    declarations = {
      python = { 'self', 'cls' },
      lua = { 'self' },
      },
    usages = {
      python = { 'self', 'cls' },
      lua = { 'self' },
    }
  },
})
zbirenbaum commented 2 years ago

have you tried changing the priority parameter in hl-args? If that doesn't work, or breaks something else, I can see about adding a way to set priority for neodim from the config.

hacker-hackman commented 2 years ago

@zbirenbaum thanks! neodim begins to dim a parameter if I set hlarg's hl_priority to 200 or lower