From 1031cee83757597d90297b097020858b2c8dea71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ol=C3=B3rtegui?= <20072509+olrtg@users.noreply.github.com> Date: Tue, 26 Dec 2023 12:15:55 -0300 Subject: [PATCH] chore: context_commentstring deprecation notice --- lua/lvim/core/treesitter.lua | 14 -------------- lua/lvim/plugins.lua | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lua/lvim/core/treesitter.lua b/lua/lvim/core/treesitter.lua index 59a16279a6..eca7fbfd81 100644 --- a/lua/lvim/core/treesitter.lua +++ b/lua/lvim/core/treesitter.lua @@ -38,20 +38,6 @@ function M.config() return status_ok and big_file_detected end, }, - context_commentstring = { - enable = true, - enable_autocmd = false, - config = { - -- Languages that have a single comment style - typescript = "// %s", - css = "/* %s */", - scss = "/* %s */", - html = "", - svelte = "", - vue = "", - json = "", - }, - }, indent = { enable = true, disable = { "yaml", "python" } }, autotag = { enable = false }, textobjects = { diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index ac45a76d71..7afb61d72a 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -150,6 +150,20 @@ local core_plugins = { -- Lazy loaded by Comment.nvim pre_hook "JoosepAlviste/nvim-ts-context-commentstring", lazy = true, + opts = { + enable_autocmd = false, + config = { + -- Languages that have a single comment style + typescript = "// %s", + css = "/* %s */", + scss = "/* %s */", + html = "", + svelte = "", + vue = "", + json = "", + }, + }, + enabled = lvim.builtin.comment.active, }, -- NvimTree