Skip to content
Discussion options

You must be logged in to vote

About

You probably don't even need mini.comment, since commenting is already built into Neovim, with mini.comment serving as the reference implementation. You can probably guess who actually brought it into the core.

Treesitter helps to determine the appropriate commentstring for the cursor position, bypassing vim.bo.commentstring. Basically, you need to configure treesitter parsers for svelte and its injected languages, such as javascript and css.

From :h commenting:

If the filetype of the buffer is associated with a language for which a
|treesitter| parser is installed, then |vim.filetype.get_option()| is called
to look up the value of 'commentstring' corresponding to the cursor positi…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@mig-hub
Comment options

@echasnovski
Comment options

@mig-hub
Comment options

@echasnovski
Comment options

Answer selected by echasnovski

This comment was marked as low quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.comment
4 participants