diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 15:55:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-03 15:55:59 -0700 |
| commit | e1160be89ae6a3ece4664c8e32a82b8637f4b177 (patch) | |
| tree | 77d533dc9606ca7e9b30d1a96baebf3de325d2a8 /lua/lspconfig/html.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| parent | ci: lint and format with stylua (diff) | |
| download | nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.gz nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.bz2 nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.lz nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.xz nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.zst nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.zip | |
Merge pull request #1029 from mjlbach/ci/format_with_stylua
ci: lint and format with stylua
Diffstat (limited to 'lua/lspconfig/html.lua')
| -rw-r--r-- | lua/lspconfig/html.lua | 27 |
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 |
