From 589c45cb8ff7c20e438f947c26db63d854cbbdb8 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 29 Nov 2023 11:03:30 +0100 Subject: [PATCH] "fix" treesitter context commentstring --- lua/plex/plugins/treesitter.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lua/plex/plugins/treesitter.lua b/lua/plex/plugins/treesitter.lua index 592534c..ff6f3d1 100644 --- a/lua/plex/plugins/treesitter.lua +++ b/lua/plex/plugins/treesitter.lua @@ -89,7 +89,14 @@ return { }, -- See: https://github.com/JoosepAlviste/nvim-ts-context-commentstring - context_commentstring = { enable = true, enable_autocmd = false }, + --context_commentstring = { enable = true, enable_autocmd = false }, + + -- 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 + + incremental_selection = { enable = true, @@ -189,6 +196,8 @@ return { init = function () vim.opt.concealcursor = "nc" vim.opt.conceallevel = 2 + vim.g.skip_ts_context_commentstring_module = true + require('ts_context_commentstring').setup {} end }, }