aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/html.lua')
-rw-r--r--lua/lspconfig/html.lua27
1 files changed, 13 insertions, 14 deletions
diff --git a/lua/lspconfig/html.lua b/lua/lspconfig/html.lua
index e69b8a2a..095d70bf 100644
--- a/lua/lspconfig/html.lua
+++ b/lua/lspconfig/html.lua
@@ -1,25 +1,24 @@
-local configs = require 'lspconfig/configs'
-local util = require 'lspconfig/util'
+local configs = require "lspconfig/configs"
+local util = require "lspconfig/util"
local server_name = "html"
local bin_name = "vscode-html-language-server"
-local root_pattern = util.root_pattern("package.json")
+local root_pattern = util.root_pattern "package.json"
configs[server_name] = {
default_config = {
- cmd = {bin_name, "--stdio"};
- filetypes = {"html"};
+ cmd = { bin_name, "--stdio" },
+ filetypes = { "html" },
root_dir = function(fname)
return root_pattern(fname) or vim.loop.os_homedir()
- end;
- settings = {};
+ end,
+ settings = {},
init_options = {
- embeddedLanguages = { css= true, javascript= true },
- configurationSection = { 'html', 'css', 'javascript' },
- }
-
- };
+ embeddedLanguages = { css = true, javascript = true },
+ configurationSection = { "html", "css", "javascript" },
+ },
+ },
docs = {
description = [[
https://github.com/hrsh7th/vscode-langservers-extracted
@@ -41,8 +40,8 @@ require'lspconfig'.html.setup {
capabilities = capabilities,
}
```
-]];
- };
+]],
+ },
}
-- vim:et ts=2 sw=2