diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-12-10 10:22:10 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 10:22:10 -0800 |
| commit | 026ab6bd54075cc8e095f9040f7912ffb708864d (patch) | |
| tree | 38898842be3e84e5bed0f385fc177a5f05329ac9 /lua/lspconfig/server_configurations/html.lua | |
| parent | docs: update server_configurations.md (diff) | |
| parent | chore(docs): add a section about windows shims (diff) | |
| download | nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.tar nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.tar.gz nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.tar.bz2 nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.tar.lz nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.tar.xz nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.tar.zst nvim-lspconfig-026ab6bd54075cc8e095f9040f7912ffb708864d.zip | |
Merge pull request #1522 from kylo252/win-compat
Diffstat (limited to 'lua/lspconfig/server_configurations/html.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/html.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/html.lua b/lua/lspconfig/server_configurations/html.lua index 8b6882d5..315143dd 100644 --- a/lua/lspconfig/server_configurations/html.lua +++ b/lua/lspconfig/server_configurations/html.lua @@ -1,10 +1,15 @@ local util = require 'lspconfig.util' local bin_name = 'vscode-html-language-server' +local cmd = { bin_name, '--stdio' } + +if vim.fn.has 'win32' == 1 then + cmd = { 'cmd.exe', '/C', bin_name, '--stdio' } +end return { default_config = { - cmd = { bin_name, '--stdio' }, + cmd = cmd, filetypes = { 'html' }, root_dir = util.root_pattern('package.json', '.git'), single_file_support = true, |
