diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-08-28 10:46:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-28 10:46:14 -0400 |
| commit | 89a102c880194096772b1446d6e143b589640c0a (patch) | |
| tree | 50f3f869ca9603ab7f545e6bb09c65d6943d6733 /lua/lspconfig/html.lua | |
| parent | feat(lspinfo): improve layout (#1186) (diff) | |
| download | nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.tar nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.tar.gz nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.tar.bz2 nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.tar.lz nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.tar.xz nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.tar.zst nvim-lspconfig-89a102c880194096772b1446d6e143b589640c0a.zip | |
feat(htmlls): improve root detection (#1200)
Diffstat (limited to 'lua/lspconfig/html.lua')
| -rw-r--r-- | lua/lspconfig/html.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/lspconfig/html.lua b/lua/lspconfig/html.lua index 9ebd4bd8..01a7dcc0 100644 --- a/lua/lspconfig/html.lua +++ b/lua/lspconfig/html.lua @@ -4,14 +4,12 @@ local util = require 'lspconfig/util' local server_name = 'html' local bin_name = 'vscode-html-language-server' -local root_pattern = util.root_pattern 'package.json' - configs[server_name] = { default_config = { cmd = { bin_name, '--stdio' }, filetypes = { 'html' }, root_dir = function(fname) - return root_pattern(fname) or vim.loop.os_homedir() + return util.root_pattern('package.json', '.git')(fname) or util.path.dirname(fname) end, settings = {}, init_options = { |
