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

context_commentstring nvim-treesitter module is deprecated #91

Open
mr-scrpt opened this issue Nov 30, 2023 · 2 comments
Open

context_commentstring nvim-treesitter module is deprecated #91

mr-scrpt opened this issue Nov 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mr-scrpt
Copy link

Minimal reproducible full config

return {
	"numToStr/Comment.nvim",
	event = { "BufReadPre", "BufNewFile" },
	dependencies = {
		"nvim-treesitter/nvim-treesitter",
		"JoosepAlviste/nvim-ts-context-commentstring",
	},
	config = function()
		local comment = require("Comment")


		-- enable comment
		comment.setup({
			-- for commenting tsx and jsx files
			-- pre_hook = ts_context_commentstring.create_pre_hook(),
			pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
		})
	end,
}

Description

I updated all the nvim modules today and started getting this error

context_commentstring nvim-treesitter module is deprecated, use require('ts_context_commentstring').setup {} and set vim.g.skip_ts_context_commentstring_module = true to speed up loading instead.
This feature will be removed in ts_context_commentstring version in the future

Steps to reproduce

I just run nvim and open any file.

Expected behavior

Just work

Actual behavior

not work

Additional context

No response

@mr-scrpt mr-scrpt added the bug Something isn't working label Nov 30, 2023
@thelazyoxymoron
Copy link

Required changes documented here: #82

JoosepAlviste added a commit that referenced this issue Nov 30, 2023
This should make it easier for users to find the migration guide.

Related to #91
@JoosepAlviste
Copy link
Owner

Added a link to the breaking changes issue to the deprecation message: 1277b4a

Hopefully that makes it easier to find the migration guide.

PS: Thanks @thelazyoxymoron for providing the link 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants