rescript-lang / vim-rescript

MIT License
154 stars 15 forks source link

Add support for commenting #75

Closed dmtrKovalenko closed 4 months ago

dmtrKovalenko commented 5 months ago

Neovim v10 has a built-in commenting support based on the treesitter. But rescript files can not be commented, and failing with the following error:

Option 'commentstring' is empty.
aspeddro commented 4 months ago

I think this should be done in https://github.com/rescript-lang/vim-rescript

Or create a file at ~/.config/nvim/after/ftplugin/rescript.lua

vim.opt_local.commentstring = '// %s'