nvim-ts-context-commentstring
nvim-ts-context-commentstring copied to clipboard
Configure plugin via global variable
This change allows setting vim.g.ts_context_commentstring_config
somewhere in, for example, ~/.config/nvim/plugin/ts_commentstring_config.lua
and have the plugin just work without any need to explicitly set it up.
The configuration is read when config.lua is loaded, e.g. on the first require('ts_context_commentstring.config')
.