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.94k stars 157 forks source link

comment config working on arch but not on linux (arch) #422

Open JonnySB opened 10 months ago

JonnySB commented 10 months ago

Hi - first of all, this is my first attempt at raising an issue on gh - so please let me know if there is anything I can do to be more helpful!

I have an nvim config I'm sharing between two computers, one Mac / one Arch, and everything is working great on both except for comment on my Arch machine despite working great on my mac. I've been searching to see if there is something I'm missing but am coming up with nothing - is this a known bug/ dependency issue maybe?

I'm importing comment using packer with a standard use statement, and then this is my config file:

local setup, comment = pcall(require, "comment")
if not setup then
    return
end

comment.setup()
mjw6i commented 8 months ago

Perhaps it's a case sensitivity issue ignored by mac. I think the require argument should be "Comment" instead of "comment".

JonnySB commented 3 months ago

I updated to lazy package manager and this sorted itself out!