JoosepAlviste / nvim-ts-context-commentstring

Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.
MIT License
1.13k stars 34 forks source link

Please do not create unnecessary global variables #95

Open litoj opened 7 months ago

litoj commented 7 months ago

The context_commentstring global is only needed if vim_commentary is used. It would be nice, if the global function was defined in that module, being lazyloaded only if vim_commentary is being used, instead of always being present in the global namespace.