davidgranstrom / scnvim

Neovim frontend for SuperCollider.
GNU General Public License v3.0
208 stars 28 forks source link

Use lua-ftdetect filetype API if nvim >= 0.7 #168

Closed ranjithshegde closed 2 years ago

ranjithshegde commented 2 years ago

This PR uses the latest lua API for ftdetect operations. There is a conditional to verify if nvim is 0.7 or not to apply the usage

davidgranstrom commented 2 years ago

@ranjithshegde Thanks for this, looks good! Would we also need to check g:do_filetype_lua to be true apart from nvim version >= 0.7? I just updated to 0.7 this morning so I haven't had a chance to test the new filetype detection yet.

ranjithshegde commented 2 years ago

Good catch! I forgot about that. Yes I will add that check and push, later this evening

ranjithshegde commented 2 years ago

@davidgranstrom this should do it?

davidgranstrom commented 2 years ago

@ranjithshegde Thanks for your patience. Looks good, let's merge this!