Closed adityabads closed 4 years ago
But when i open :CocConfigure
in vim it's empty, nothing is present in that file.
So how should i configure coc-html?
As stated-
Configuration options html.enable set to false to disable html language server. html.trace.server set trace level of LSP traffic. html.execArgv add execArgv to child_process.spawn html.filetypes default [ "html", "handlebars", "htmldjango" ]. html.format.enable enable format support. html.validate.scripts validate for embedded scripts. html.validate.styles validate for embedded styles. html.autoClosingTags Enable/disable autoClosing of HTML tags. Trigger completion in coc-settings.json for complete list.
You need learn json first.
I'll...but Can you please help just to configure coc-html?
Can't help, I don't know what's your problem.
@adityabads the answer is in https://github.com/neoclide/coc.nvim/wiki/Using-the-configuration-file, but it isn't very friendly for people who are new to json config files.
coc.nvim uses jsonc as configuration file format, the same as VSCode. It's json that supports comments, like:
{
// my variable
"foo": "bar"
}
What this is saying, is your config file starts with {
and ends with }
, and has config options in between. So "foo": "bar"
means "configOptionName": "configOptionValue"
, or more concretely
{
"html.enable": true,
"html.filetypes": ["html", "handlebars", "htmldjango"],
}
You have written to configure coc-html.. like this..
Configuration options html.enable set to false to disable html language server. html.trace.server set trace level of LSP traffic. html.execArgv add execArgv to child_process.spawn html.filetypes default [ "html", "handlebars", "htmldjango" ]. html.format.enable enable format support. html.validate.scripts validate for embedded scripts. html.validate.styles validate for embedded styles. html.autoClosingTags Enable/disable autoClosing of HTML tags. Trigger completion in coc-settings.json for complete list.
But didn't told how should i open configuration options?