From ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 3 Jul 2021 14:45:08 -0700 Subject: ci: lint and format with stylua --- lua/lspconfig/html.lua | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'lua/lspconfig/html.lua') 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 -- cgit v1.2.3-70-g09d2