roobert / tailwindcss-colorizer-cmp.nvim

:rainbow: A Neovim plugin to add vscode-style TailwindCSS completion to nvim-cmp
323 stars 3 forks source link

fix: use local for return table M #13

Closed prochri closed 5 months ago

prochri commented 10 months ago

The return table M is defined in a global scope. While this should not affect this plugins functionality, using global M for more plugins might cause very weird bugs. (one of which I spent some time debugging today)

catgoose commented 5 months ago

This should be fixed ASAP. I get complaints about M.setup being defined already

prochri commented 5 months ago

I removed the formatting changes. It should now only be a 2 line change.

roobert commented 5 months ago

Thanks @prochri, well spotted!