Skip to content

Commit

Permalink
chore: context_commentstring deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
olrtg committed May 13, 2024
1 parent d8ffab8 commit 1031cee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lua/lvim/core/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<!-- %s -->",
svelte = "<!-- %s -->",
vue = "<!-- %s -->",
json = "",
},
},
indent = { enable = true, disable = { "yaml", "python" } },
autotag = { enable = false },
textobjects = {
Expand Down
14 changes: 14 additions & 0 deletions lua/lvim/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<!-- %s -->",
svelte = "<!-- %s -->",
vue = "<!-- %s -->",
json = "",
},
},
enabled = lvim.builtin.comment.active,
},

-- NvimTree
Expand Down

0 comments on commit 1031cee

Please sign in to comment.