ts-comments.nvim icon indicating copy to clipboard operation
ts-comments.nvim copied to clipboard

bug: Default commentstring for languages without ftplugins

Open smartinellimarco opened this issue 1 year ago • 4 comments

Did you check docs and existing issues?

  • [X] I have read all the ts-comments.nvim docs
  • [X] I have updated the plugin to the latest version before submitting this issue
  • [X] I have searched the existing issues of ts-comments.nvim
  • [X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.1

Operating system/version

MacOS 14.3

Describe the bug

Hi there,

I've noticed that languages like Terraform don't have a ftplugin available yet (it's in the process of being added from Vim source). Because of this, the plugin isn't working properly for uncommenting.

It would be great if we could set a default comment string directly in this plugin.

Thanks for considering this!

Steps To Reproduce

  1. Comment a block in a tf file
  2. It should say commentstring is empty

Expected Behavior

The code should be uncommented

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/ts-comments.nvim", opts = {} },
    -- add any other plugins here
  },
})

smartinellimarco avatar Jul 25 '24 21:07 smartinellimarco

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 25 '24 01:08 github-actions[bot]

not stale

smartinellimarco avatar Aug 25 '24 02:08 smartinellimarco

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 25 '24 01:09 github-actions[bot]

not stale

smartinellimarco avatar Sep 25 '24 14:09 smartinellimarco