summaryrefslogtreecommitdiff
path: root/lua/lvim/core/treesitter.lua
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2021-11-05 22:15:10 +0000
committerGitHub <[email protected]>2021-11-05 22:15:10 +0000
commite193d6aed5ef854e613e7044b44be414a085cf03 (patch)
treea9f497b3fa913484291ae9c87e2d6498c7520383 /lua/lvim/core/treesitter.lua
parent6b3e0574a3d2577f8c0558144202ba12f3978cae (diff)
feat: enable context commentstring by default (#1904)
Diffstat (limited to 'lua/lvim/core/treesitter.lua')
-rw-r--r--lua/lvim/core/treesitter.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/lua/lvim/core/treesitter.lua b/lua/lvim/core/treesitter.lua
index 9c6c555e..8dbbcacb 100644
--- a/lua/lvim/core/treesitter.lua
+++ b/lua/lvim/core/treesitter.lua
@@ -16,8 +16,17 @@ M.config = function()
disable = { "latex" },
},
context_commentstring = {
- enable = false,
- config = { css = "// %s" },
+ enable = true,
+ 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 = {"python", "html", "javascript"}},
-- TODO seems to be broken