Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for commenting #75

Closed
dmtrKovalenko opened this issue Jun 14, 2024 · 1 comment · Fixed by #76
Closed

Add support for commenting #75

dmtrKovalenko opened this issue Jun 14, 2024 · 1 comment · Fixed by #76

Comments

@dmtrKovalenko
Copy link

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
Copy link
Collaborator

aspeddro commented Jul 25, 2024

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'

@aspeddro aspeddro transferred this issue from rescript-lang/tree-sitter-rescript Jul 28, 2024
aspeddro added a commit that referenced this issue Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants