From 49e0ec10ba5081a8ac60a4abb5e86ac008fb540a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 20 Nov 2023 19:27:52 +0100 Subject: fix treesitter comment handling --- lua/user/core/treesitter.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/user/core/treesitter.lua b/lua/user/core/treesitter.lua index 05d8fbf..df99773 100644 --- a/lua/user/core/treesitter.lua +++ b/lua/user/core/treesitter.lua @@ -4,6 +4,11 @@ if not status_ok then return end +require('ts_context_commentstring').setup { + enable = true, + enable_autocmd = false +} + configs.setup { ensure_installed = {"ruby"}, -- one of "all" or a list of languages sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) @@ -17,10 +22,6 @@ configs.setup { additional_vim_regex_highlighting = true, }, indent = { enable = true, disable = { "yaml" } }, - context_commentstring = { -- for nvim-ts-context-commentstring - enable = true, - enable_autocmd = false, - }, playground = { enable = true, }, -- cgit v1.1-2-g2b99