aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: enforce single file mode check when root_dir differs from client (#2998)Patricio Serrano2024-02-061-1/+2
| | | fixes issue [#2959](https://github.com/neovim/nvim-lspconfig/issues/2959#issue-2068768094)
* feat: add `templ` filetype in html htmx tailwindcss (#2996)mortezadadgar2024-02-043-2/+4
| | | | | | | * feat(tailwindcss): add `templ` to filetypes * feat(html): add `templ` to filetypes * feat(htmx): add `templ` to filetypes
* fix(rust-analyzer): re-analyzing cargo deps (#2995)Jerko Steiner2024-02-021-2/+3
| | | | | | | | | | | | | | | | I'm not that well versed in Lua, but the previous check if fname:sub(1, #item) == item didn't really work as expected and I was still experiencing high CPU usage when using the `go to definition` functionality. After adding some print statements for debugging, I noticed that only a few strings were removed from the base dir and thus the comparison was failing. Perhaps it might work differently in other operating systems, but my Linux machine it did not work correctly. I replaced this check with `util.path.is_descendant` which now works correctly, as well as added another path to check when git repositories are used as cargo dependencies.
* fix(typst_lsp): declare single file support (#2994)rhjdvsgsgks2024-02-011-0/+1
|
* 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 dprint lsp (#2982)Seth Daniel2024-01-311-0/+33
|
* feat(helm-ls): enable dynamicRegistration for didChangeWatchedFiles (#2992)valentin2024-01-301-0/+10
| | | | This is required for the upcoming release of helm-ls see https://github.com/mrjosh/helm-ls/pull/58
* feat(swift_mesonls): add meson.options as a root marker (#2991)Tristan Partin2024-01-301-2/+2
| | | | This is the preferred filename for defining options for a few versions. meson_options.txt is legacy, but will continue to stick around.
* fix(texlab): look for ".git" before ".latexmkrc"Justin M. Keyes2024-01-291-1/+1
| | | | | | fix #2975 followup to: 995603cfaecffe10e0f4bf57f92d187f86c2de39
* fix: disable autostart after :LspStop #2987brook hong2024-01-281-0/+3
| | | | | | | | | | Problem: The `BufReadPost` handler may autostart LSP, even after `:LspStop`. Solution: Remove the `BufReadPost` handler if there are no clients (assuming that `:LspStop` stopped them). Note: The `BufReadPost` handler will be recreated if user runs `:LspStart`.
* fix(mdx_analyzer): pass typescript lib as option (#2974)Jake Potrebic2024-01-281-0/+13
| | | Per https://github.com/orgs/mdx-js/discussions/2427 and my own testing, mdx_analyzer needs a similar treatment as volar and astro to pass the typescript library into the lsp. Otherwise you get the error mentioned in that discussion.
* fix(biome)!: make biome only run in projects with biome.json file (#2984)willparsons2024-01-281-7/+3
| | | | | | | Closes #2980 This PR adjusts the configuration for the biome LSP to only attach if there is an existing biome.json found. This helps prevent conflicts in ESLint projects since biome would attach and start providing diagnostics and would format files which could conflict with the ESLint/Prettier rules that are defined.
* fix(lua-language-server): update root directory search (#2842)Dmitriy Gorokhov2024-01-281-1/+1
|
* feat: enable single file mode for vale_ls (#2978)alex-tdrn2024-01-201-0/+1
| | | | as of vale 3.0.0, vale can be used with a system default `.vale.ini`, which means vale_ls can also be used in single file mode
* feat: add bzl lsp (#2973)matawed2024-01-191-0/+22
| | | Co-authored-by: Markus Tauchnitz <dev@planet-mt.de>
* chore: update dcmls config (#2969)Robert Brunhage2024-01-141-1/+1
| | | | | * chore: update dcm config * chore: add more docs around dcmls
* chore: update dcmls configuration (#2965)Robert Brunhage2024-01-121-2/+2
|
* feat: add dcmls support (#2963)Robert Brunhage2024-01-121-0/+19
| | | https://dcm.dev/
* fix(docs): Add note about filetype for docker-compose (#2961)Uzair Aftab2024-01-121-0/+2
|
* feat: add lwc-language-server support (#2958)Zech Burrus2024-01-061-0/+37
| | | | | | | * feat: add lwc-language-server support * fix(lwc-language-server): added missing , to end of cmd line * fix(lwc-language-server): remove trailing whitespace
* fix(csharp-ls): csharp-ls uses solution file for project root first (#2955)JD2024-01-021-1/+3
|
* fix(ols): remove single_file_support (#2952)Harley Laue2023-12-311-3/+2
| | | | | | | | | | | | | | | | | | * fix(ols): remove single_file_support It doesn't seem like ols really has support for single_file_support. The ols application crashes with the following message: "ols/src/server/requests.odin(1494:28) Index 0 is out of range 0..<0\n" This happens on workspace/didChangeConfiguration when settings are provided in the users' ols setup. To work around this, essentially turning off single_file_support & adding *.odin as a way to detect a root_dir. This isn't very common but at least one other language server uses this method, qml_ls. However, without this, the ols doesn't really work out of the box for projects that lack a .git directory or ols.json file. * fix(ols): remove single_file_support that defaults to false
* fix(sqls): sqls is unarchived (#2950)Takumi Kanada2023-12-291-4/+0
|
* fix(pyright): only send commands to pyrightMenno2023-12-211-1/+8
|
* feat(snyk-ls): add support for snyk-ls (#2826)Peter Benjamin2023-12-211-0/+22
| | | | | * feat(snyk-ls): add support for snyk-ls * fix(snyk-ls): remove filetypes
* fix(sqls): repository moves to organization (#2945)Tatsumi Gamou2023-12-211-2/+2
|
* docs(spyglassmc_language_server): fix typo in repository url (#2941)David Ballesteros2023-12-201-1/+1
|
* feat: add twig-language-server (#2939)Sven Cheng2023-12-201-0/+21
|
* feat(denols): follow the latest default value of the vscode extension (#2936)NAKAI Tsuyoshi2023-12-191-5/+3
| | | | | * feat(denols): follow the latest default value of the vscode extension * fix(denols): nvim_buf_set_option is deprecated
* fix(typos): typos root directory indicator (#2935)pseudometa2023-12-191-1/+1
|
* fix(zls): include `build.zig` in root dir search (#2933)Laurynas Lazauskas2023-12-181-2/+2
| | | | | | | | | | | | | | File `build.zig` by convention sits at the root dir and thus can be used to correctly identify the root directory. This is particularly useful if `zls` has `enable_build_on_save` set to `true`, since then the language server uses workspace path (root_dir) to execute `zig build` command, output of which is then used to publish diagnostic errors. Without `build.zig` root directory can incorrectly be deduced some layers too high at the root of the git repo. In such case `enable_build_on_save` silently fails and does not report build error diagnostics.
* feat(kotlin_language_server): Add storagePath to initilaztion options (#2930)Shaygan Hooshyari2023-12-172-22/+12
| | | | | | | * feat(kotlin_language_server): add storagePath to initilaztion options * docs(kotlin_language_server): add storage path * refactor(psalm): reformat code
* fix(psalm): psalm now uses a --language-server option (#2929)Malpha2023-12-141-7/+2
| | | | * fix(psalm): psalm now uses a --language-server option
* fix(elixirls): smarter detection of root_dir for umbrella apps (#2911)Paul Gideon Dann2023-12-121-4/+9
|
* feat: add cds-lsp (#2926)Stijn Mertens2023-12-101-0/+33
| | | | | | | * feat: added @sap/cds-lsp * fix(cds-lsp): update root dir pattern * fix(cds-lsp): cleanup double configuraton of root_dir copied from csslsp example
* fix(cssls): enable enabling of formatting capabilities (#2925)pseudometa2023-12-081-0/+1
|
* fix(rubocop): don't auto-detect bundler, to avoid surprising configuration ↵Marc Busqué2023-12-061-7/+0
| | | | | behavior (#2923) Ref. #2716. The referenced PR changes got somehow lost when it came to the removal of the `on_new_config` function.
* fix(jsonnet_ls): enable single file support for jsonnet_ls (#2922)Daniel2023-12-041-0/+1
|
* fix: remove custom handler (#2920)Tiago Vilela2023-12-011-7/+1
|
* feat: add hydra-lsp (#2919)Kostiantyn Liepieshov2023-11-301-0/+20
| | | | | * feat: add hydra_lsp * feat(hydra_lsp): single file support
* fix(typos_lsp): use configuration file for root detection #2918Micah Halter2023-11-281-1/+1
|
* chore(emmet_language_server): remove languages with emmet bundled by their ↵José Olórtegui2023-11-271-3/+0
| | | | language server (#2914)
* feat: add typos-lsp server (#2886)Jonathan Slenders2023-11-221-0/+21
| | | | | | | | | | | | | * feat: add typos-lsp server configuration * fixup! * fixup! * fixup! --------- Co-authored-by: Raphael <glephunter@gmail.com>
* fix(elixirls): root_dir priority: mix.exs > .git (#2910)Paul Gideon Dann2023-11-221-1/+1
| | | | | If we're in a subdirectory of a git repo, and that subdirectory contains a mix.exs file, it makes sense to assume the subdirectory is the project root, rather than the git repo root.
* Merge #2906 cleanup root patternsJustin M. Keyes2023-11-2111-66/+27
|\
| * fix(vtsls): update root_dirEmilio Ziniades2023-11-191-5/+2
| |
| * fix(tsserver): update root_dirEmilio Ziniades2023-11-191-5/+2
| |
| * fix(tailwindcss): update root_dirEmilio Ziniades2023-11-191-5/+10
| |
| * fix(syntax_tree): update root_dirEmilio Ziniades2023-11-191-3/+1
| |
| * fix(omnisharp): update root_dirEmilio Ziniades2023-11-191-10/+2
| |