RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.23k stars 53 forks source link

Add `setup()` as an alias to `configure()` #213

Closed WieeRd closed 2 months ago

WieeRd commented 3 months ago

setup() is a more common/standard name for a general plugin configuration function. And with lazy.nvim, it allows you to just specify the opts table instead of a whole function call.

{
  "RRethy/vim-illuminate",
  config = function()
    require("illuminate").configure({ 
      -- stuffs
    })
  end,
},
{
  "RRethy/vim-illuminate",
  opts = {
    -- stuffs
  },
},

It's a minor QoL improvement, but it also only takes a single line. What do you think?

RRethy commented 2 months ago

No.

WieeRd commented 2 months ago

Well, it's your plugin, your decision. But can I know why?