mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
feat: enable context commentstring by default (#1904)
This commit is contained in:
parent
6b3e0574a3
commit
e193d6aed5
2 changed files with 15 additions and 2 deletions
|
@ -16,8 +16,17 @@ M.config = function()
|
||||||
disable = { "latex" },
|
disable = { "latex" },
|
||||||
},
|
},
|
||||||
context_commentstring = {
|
context_commentstring = {
|
||||||
enable = false,
|
enable = true,
|
||||||
config = { css = "// %s" },
|
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"}},
|
-- indent = {enable = true, disable = {"python", "html", "javascript"}},
|
||||||
-- TODO seems to be broken
|
-- TODO seems to be broken
|
||||||
|
|
|
@ -75,6 +75,10 @@ return {
|
||||||
require("lvim.core.treesitter").setup()
|
require("lvim.core.treesitter").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
|
event = "BufReadPost",
|
||||||
|
},
|
||||||
|
|
||||||
-- NvimTree
|
-- NvimTree
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue