feat: enable context commentstring by default (#1904)

This commit is contained in:
Christian Chiarulli 2021-11-05 22:15:10 +00:00 committed by GitHub
parent 6b3e0574a3
commit e193d6aed5
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View file

@ -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

View file

@ -75,6 +75,10 @@ return {
require("lvim.core.treesitter").setup()
end,
},
{
"JoosepAlviste/nvim-ts-context-commentstring",
event = "BufReadPost",
},
-- NvimTree
{