diff options
| author | William Boman <william@redwill.se> | 2022-01-04 18:49:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-04 09:49:57 -0800 |
| commit | ddc2e549b03b194992e306295b2e22bf5f8f9271 (patch) | |
| tree | a70d33003849adeb2294b926f4592f62c03c4214 /lua/lspconfig/server_configurations/ltex.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.tar nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.tar.gz nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.tar.bz2 nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.tar.lz nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.tar.xz nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.tar.zst nvim-lspconfig-ddc2e549b03b194992e306295b2e22bf5f8f9271.zip | |
fix(ltex): use .bat extension on Windows (#1628)
Diffstat (limited to 'lua/lspconfig/server_configurations/ltex.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/ltex.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/ltex.lua b/lua/lspconfig/server_configurations/ltex.lua index e9b49afb..e5d01a30 100644 --- a/lua/lspconfig/server_configurations/ltex.lua +++ b/lua/lspconfig/server_configurations/ltex.lua @@ -9,9 +9,14 @@ local language_id_mapping = { xhtml = 'xhtml', } +local bin_name = 'ltex-ls' +if vim.fn.has 'win32' == 1 then + bin_name = bin_name .. '.bat' +end + return { default_config = { - cmd = { 'ltex-ls' }, + cmd = { bin_name }, filetypes = { 'bib', 'markdown', 'org', 'plaintex', 'rst', 'rnoweb', 'tex' }, root_dir = util.find_git_ancestor, single_file_support = true, |
