Skip to content

[mini.comment] Doesn't work for Verilog, SystemVerilog, and Arduino files #1566

Closed Answered by krovuxdev
usman1515 asked this question in Q&A
Discussion options

You must be logged in to vote

@usman1515 It's not a bug or a missing dependency. The issue is that Neovim doesn't define commentstring for these file types by default. I had the same problem with yuck and lisp. mini.comment didn't work until I created nvim/after/ftplugin/yuck.lua with:

vim.opt_local.commentstring = "; %s"

I'm sure this is not related to mini.comment. The real issue is that Neovim doesn't set commentstring for Arduino or SystemVerilog by default.

For example, Rust and Python have commentstring set automatically because Neovim already supports them.

or is it expected that users manually configure commentstring for these file types?

Yes, you need to set it manually. Neovim doesn't define it by default …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@echasnovski
Comment options

@usman1515
Comment options

Answer selected by echasnovski
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
3 participants