Should I remove require('plugin').setup() from my plugins?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • neovim-plugin

  • Definitely remove it, as it is an anti-pattern that gained popularity because individuals often copy content without careful consideration. As far as I know, it primarily originated from this Github post, which was created during the early days of Lua's growing popularity in Neovim as an attempt to reinvent the wheel.

  • 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.

  • You can add a prefix that's specific to your plugin, or just have a single field specific to your plugin's name which takes a table. Alternatively, in one of my plugins I use .configure strictly for configuration, which doesn't init the plugin, see https://github.com/RRethy/vim-illuminate/issues/112. The majority of configuration shouldn't be needed though if you have strong defaults, just look at tpope plugins.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts