JoosepAlviste / nvim-ts-context-commentstring

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

Language additions and sorting filetypes #78

Closed felixnorden closed 1 year ago

felixnorden commented 1 year ago

Wanted to add in some additional language comment types in here as I was lacking some of them myself in my flow using LazyVim! Please let me know if there's anything needed further to get this merged in!

This commit will:

felixnorden commented 1 year ago

Sounds like a good plan, I’ll look to get those pieces covered tomorrow with a new commit to make sure we have a non-breaking change and update docs! 

felixnorden commented 1 year ago

@JoosepAlviste , I added in the changes but wasn't sure about how to mark the config field for deprecation properly. Apart from this, I think that the logic should be in order for merging languages and config based on the internal logic and allowing for overrides/extensions.

Let me know if you want me to put the merge from keep to force in the table merge, however, in case this needs to be done for end-user overrides/extensions to have priority over the supported languages out of the box!

felixnorden commented 1 year ago

Roger that, will have a look on your comments and make sure we cover that as well! 👍 thanks for taking the time to go through it!

JoosepAlviste commented 1 year ago

Looks great now, thanks for the contribution! And thanks for taking care of the config key renaming 😄