numToStr / Comment.nvim

:brain: :muscle: // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more
MIT License
3.84k stars 152 forks source link

"No plugin name provided at line" from Packer with this plugin #200

Closed tony-sol closed 2 years ago

tony-sol commented 2 years ago

After installation as

use {
    'numToStr/Comment.nvim',
    require('Comment').setup {},
}

with packer, after every sync, get warning notification

[WARN  Wed Aug 10 17:48:26 2022 1.0501737815318e+15] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:195: No plugin name provided at line 125!

After little research, found issue in this plugin: packer checks plugin_spec and trying to get plugin name at 1st position, but got this:

{
  extra = {
    above = "gcO",
    below = "gco",
    eol = "gcA"
  },
  mappings = {
    basic = true,
    extended = false,
    extra = true
  },
  opleader = {
    block = "gb",
    line = "gc"
  },
  padding = true,
  sticky = true,
  toggler = {
    block = "gbc",
    line = "gcc"
  }
}

Is this plugin misconfiguration or bug?

numToStr commented 2 years ago

That's clearly wrong. Please read the README.