aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/ltex.lua
Commit message (Collapse)AuthorAgeFilesLines
* refactor: rename "server_configurations" => "configs" #3330Justin M. Keyes2024-10-011-90/+0
| | | | | | | | | | | | | | Problem: The name `server_configurations` is extremely verbose and irritatingly formal and dogmatic. This overlong name is a constant nuisance when reading, writing, and coding. It's also not even correct: these configurations are just as much "client" configurations as they are "server" configurations. Solution: - Rename to a shorter name. - Leave placeholder files for any old URLs that link to the old location.
* fix(ltex-ls): command fails on windows when using mason (#3305)lucasbrg2024-09-171-6/+1
|
* feat(ltext): add mail and text as ltex filetypes (#3103)Stefano Volpe2024-04-191-0/+2
|
* feat(ltex): imrove default settings(#2979)Mateusz Majewski2024-01-311-11/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(ltex): fix rnoweb support Unfortunately language code `sweave` will not be understood by LTeX and `rsweave` must be used, as can be seen in the source code here: https://github.com/valentjn/ltex-ls/blob/16.0.0/src/main/kotlin/org/bsplines/ltexls/parsing/CodeFragmentizer.kt#L61 and here: https://github.com/valentjn/ltex-ls/blob/16.0.0/src/main/kotlin/org/bsplines/ltexls/settings/Settings.kt#L185 LTeX will fall back to plaintext, but this will emit a warning and provide slightly worse suggestions. * fix(ltex): disable unnecessary xhtml mapping This mapping does not do anything, the `get_language_id` function will just return `xhtml` by default. * feat(ltex): add plaintext mapping LTeX will only understand `plaintext`: https://github.com/valentjn/ltex-ls/blob/16.0.0/src/main/kotlin/org/bsplines/ltexls/parsing/CodeFragmentizer.kt#L70 though it will fall back to plain text when provided `text` as mapping, but will output a warning when doing so. Note that we do not enable the `text` filetype by default, as LTeX itself does not do so. However, this filetype will not be useable without this mapping anyway, so doing this makes using enabling this manually slightly easier. * fix(ltex): set ltex.enabled LTeX is launched whenever the filetype is on the preset list, but will then verify the language ID against its list and will refuse to run if the language ID is not on the list. The default can be seen in https://github.com/valentjn/ltex-ls/blob/16.0.0/src/main/kotlin/org/bsplines/ltexls/settings/Settings.kt#L175 and somewhat matches the supported markup languages list. The issue resolved by this commit comes from the fact that LTeX will accept several aliases for each language, for instance it will handle `gitcommit` and `git-commit` the same way. However, only `git-commit` appears on the default enabled list. Since there is no `gitcommit -> git-commit` mapping in `language_id_mapping`, LTeX will ignore `gitcommit`. This could also be solved by adding this mapping, however setting a default value of `ltex.enabled` has smaller change of breaking existing configuration. Same situation happens for `xhtml`. * feat(ltex): enable in context, html and xhtml filetypes ConTeXt was requested in #2663. LTeX is documented to enable it by default, but this is not consistent with the default in the code: https://github.com/valentjn/ltex-ls/blob/16.0.0/src/main/kotlin/org/bsplines/ltexls/settings/Settings.kt#L175 Regardless of this we will enable it by ourselves anyway. We also enable HTML and XHTML as there already has been an attempt to enable them previously, as there has been a mapping for `xhtml` in the `language_id_mapping` array. HTML support is enabled in LTeX by default anyway.
* feat: add quarto and rmd filetype to ltex.luaCillian Berragan2023-09-301-1/+1
| | | Since `ltex-ls` release 16.0 Quarto and RMarkdown are now officially supported: https://github.com/valentjn/ltex-ls/releases/tag/16.0.0
* fix(ltex-ls): pass pandoc as markdown (#2426)Matthias Bilger2023-01-311-1/+2
|
* docs(ltex): add settings example (#2421)Brian Di Palma2023-01-271-0/+10
|
* chore: remove all package.json (#1656)Michael Lingelbach2022-02-251-1/+0
|
* feat(ltexls): add gitcommit to filetypes (#1637)Michael Lingelbach2022-01-051-1/+1
|
* fix(ltex): use .bat extension on Windows (#1628)William Boman2022-01-041-1/+6
|
* feat(ltex): enable single_file_support (#1556)Michael Lingelbach2021-12-101-0/+1
|
* chore: clean up importsMichael Lingelbach2021-11-251-1/+1
|
* feat: expose configsMichael Lingelbach2021-11-251-0/+42