Commit Graph

3377 Commits

Author SHA1 Message Date
Riley Bruins
71b5ca5ef1
feat: ts_query_ls (for tree-sitter query files) #3404 2024-10-25 17:15:50 -07:00
Justin M. Keyes
4ae8ea0490
fix(health): "root directory" not reported #3402
Problem:
"root directory" not reported.

Solution:
report root_dir. regression from b55b9659de
2024-10-25 07:50:39 -07:00
github-actions[bot]
85afd4b936 docs: update configs.md
skip-checks: true
2024-10-24 17:28:29 +00:00
Justin M. Keyes
a4a0cf9b39
feat(docs): improve formatting of generated docs #3400 2024-10-24 10:28:14 -07:00
Justin M. Keyes
fb41274c64
fix(health): version fails for jdtls #3399
Problem:
version fails for jdtls

Solution:
Try `-version` (one hyphen). Drop `-v`, it's probably not useful. Also
drop `-h` because it is unlikely to work if `--help` didn't work.

TODO: make a smarter guess about the actual "argv0" of `cmd`.
2024-10-24 09:56:32 -07:00
github-actions[bot]
dc997ac334 docs: update configs.md
skip-checks: true
2024-10-24 16:36:34 +00:00
Justin M. Keyes
5fd8b56081
refactor(docs): drop redundant default_config #3398
Problem:
default_config duplicated in `docs` items.

Solution:
delete it. docgen autogenerates this now.
2024-10-24 09:36:22 -07:00
github-actions[bot]
f9827a4fc6 docs: update configs.md
skip-checks: true
2024-10-24 16:27:37 +00:00
Justin M. Keyes
e61da1eae5
refactor(docs): drop redundant default_config #3397
Problem:
default_config duplicated in `docs` items.

Solution:
delete it. docgen autogenerates this now.
2024-10-24 09:27:23 -07:00
github-actions[bot]
a098f40635 docs: update configs.md
skip-checks: true
2024-10-24 15:47:49 +00:00
Justin M. Keyes
e668ac341f
Merge #3396 autogenerate default_config docs 2024-10-24 08:47:37 -07:00
Justin M. Keyes
de417a11ec regen docs 2024-10-24 17:39:27 +02:00
Justin M. Keyes
b2c90502d8 feat(docs): improve formatting of generated docs 2024-10-24 17:38:57 +02:00
Justin M. Keyes
903866024c feat(docs): autogenerate default_config docs
Problem:
debug.info() is useless for some functions because they point to util.lua

Solution:
Provide a path to the source code instead of trying to inline the source
code.
2024-10-24 17:24:48 +02:00
Justin M. Keyes
9624fffcfa feat(docs): autogenerate default_config docs
Problem:
Docs are manually maintained everywhere for no good reason.

Solution:
- revert commit 9dc02492c4
- provide a "gF" friendly link to the source
2024-10-24 17:24:45 +02:00
github-actions[bot]
831892d15c docs: update configs.md
skip-checks: true
2024-10-24 11:47:53 +00:00
Ghjuvan Lacambre
b6b0dc7410
feat: ada_ls #3394
The configuration for the Ada Language Server was first added in #171 and
removed in #3310. The removal happened due to misunderstandings, it was thought
at the time that the default language server configuration could not work on its
own (#1683), it turns out that this was actually caused by a bug in the ALS that
was fixed a long time ago. This means the default ALS configuration can be
re-introduced.

However, in the meantime, a new neovim plugin for Ada was created and the name
"als" was borrowed, thus we have to use a new name, ada_ls, in order to avoid
breaking this plugin.

This reverts commit 7b8b0b3ddd.
2024-10-24 04:47:42 -07:00
andrew snelling
edd9591199
chore(config): improve on_new_config type (#3392) 2024-10-23 12:46:20 +08:00
Folke Lemaitre
0d62a16429
fix(lua_ls): when neither lua or git root found, return nil. See #3322 (#3391) 2024-10-22 18:51:50 +08:00
Justin M. Keyes
84f867753f
fix(health): "attempt to index cmd (function)" #3390
Problem:
`cmd` may be a random function instead of an executable command.

    ERROR Failed to run healthcheck for "lspconfig" plugin. Exception:
    .../lua/lspconfig/health.lua:127: attempt to index field 'cmd' (a function value)

Solution:
Skip attempt to invoke `<cmd> --version` if `cmd` is a function.
2024-10-20 11:56:47 -07:00
Justin M. Keyes
fd49d5863e
fix(health): improve version reporting #3388
- try the next command if:
  - version pattern is not matched
  - exitcode is nonzero or timeout.
- truncate long output
2024-10-19 08:55:21 -07:00
Scott Penrose
b58d56c0c7
fix(health): support gopls version command (#3386) 2024-10-19 13:53:43 +08:00
Justin M. Keyes
b55b9659de
fix(lspinfo): improve version check, deduplicate #3383
- improve version handling: try --version, -v, etc.
- avoid hanging commands (timeout after 1s).
- also collect stderr.
- show "Tried: ..." on failure.
- omit "custom handlers" if none found.
2024-10-18 08:48:14 -07:00
Justin M. Keyes
d6b0c3b38c
feat(lspinfo): also show version in make_client_info #3382
Problem:
version is only printed for make_config_info.

Solution:
Add it to make_client_info.
2024-10-18 06:47:24 -07:00
github-actions[bot]
6db8e0ec01 docs: update configs.md
skip-checks: true
2024-10-18 13:02:59 +00:00
Jean-Charles Quillet
3bbd7979b1
docs(lua_ls): hint about personal config #3381 2024-10-18 06:02:46 -07:00
Justin M. Keyes
54d1091ca2
Merge #3375 from neovim/rmlspinfo 2024-10-18 05:24:06 -07:00
Justin M. Keyes
2c812ad934 feat(lspinfo): print <cmd> --version result 2024-10-18 14:20:14 +02:00
Justin M. Keyes
679d978e64 fix(lspinfo)!: remove config.lspinfo
Problem:
`config.lspinfo` is an undocumented feature that allows extending the
info shown in `:LspInfo` (`:checkhealth lspconfig`).
This feature is unwanted because:
- it's undocumented
- it adds a maintenance burden
- it provides info that should be derived from the LSP protocol itself.

Solution:
Remove support for `config.lspinfo`.
Instead, `:LspInfo` (`:checkhealth lspconfig`) should be enhanced to
automatically gather this kind of extra info from the server response.
2024-10-18 12:30:55 +02:00
Justin M. Keyes
6f0ec89858
refactor: minor cleanup #3379 2024-10-18 03:17:57 -07:00
Guilherme Soares
dda84e6dd9
fix(LspStop): correctly stop servers and notify user #3378
## Problem
The current `LspStop` behavior is confusing and wrong:

**Server name:**
- If the server with the given `server_name` is **not attached**:
  - No notification is shown, and **all** LSP servers are stopped.
- If the server with the given `server_name` is **attached**:
  - **Incorrectly** closes all LSP servers.
- If no servers are attached:
  - `server_name` is notified as missing.

**Server ID:**
- If the server with the given `server_id` is **not attached**:
  - Uses `get_managed_clients()` function 541f3a2781/plugin/lspconfig.lua (L45-L47) Which doesn't return all servers (e.g., `null-ls`), so it doesn't close all LSP clients.
- If the server with the given `server_id` is **attached**:
  - The correct LSP server is stopped (including `null-ls`).

**No arguments:**
- If servers are **attached**:
  - Stops all servers.
- If no servers are attached:
  - **Incorrectly** notifies the user with: `config "" not found`.

## Solution

**Server name:**
- If the server with the given `server_name` is **not attached**:
  - Notify the user, but **do not close** any servers.
- If the server with the given `server_name` is **attached**:
  - Close the specified server.

**Server ID:**
- If the server with the given `server_id` is **not attached**:
  - Notify the user, but **do not close** any servers.
- If the server with the given `server_id` is **attached**:
  - Close the specified server.

**No arguments:**
- If servers are **attached**:
  - Stops all servers.
- If no servers are attached:
  - No-op.
2024-10-18 02:46:51 -07:00
Austin Horstman
541f3a2781
docs(lsp_ai): description string instead of table (#3374)
Follow suit of other descriptions that are just strings
2024-10-16 13:12:04 +08:00
github-actions[bot]
9b2509f17c docs: update configs.md
skip-checks: true
2024-10-15 16:02:50 +00:00
Cdrman Fu
628dc8305c
docs(jqls, uvls): remove needy backslashes #3373 2024-10-15 09:02:37 -07:00
glepnir
7be9986a4a
docs: add requirement of a new server (#3368)
* docs: add requirement of a new server


Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2024-10-15 18:05:26 +08:00
github-actions[bot]
7c4d0f77b8 docs: update configs.md
skip-checks: true
2024-10-14 15:39:35 +00:00
Thibault de Villèle
d0ea4cd5f3
fix(texlab): remove deprecated texlab.auxDirectory #3255
The configuration key 'texlab.auxDirextory' has been deprecated, in
favor of 'texlab.build.auxDir', mirroring the latexmkrc's auxDir
variable.
https://github.com/latex-lsp/texlab/wiki/Configuration#deprecated-texlabauxdirectory

texlab.build.auxDir has a default value of `.` in texlab if not explicitly set, or if the user has no `latexmkrc` file.
https://github.com/latex-lsp/texlab/wiki/Configuration#texlabbuildauxdirectory
2024-10-14 08:39:24 -07:00
github-actions[bot]
a6d018546c docs: update configs.md
skip-checks: true
2024-10-14 15:07:22 +00:00
leaked memory
0bf8acea97
fix(biome): remove 'css' duplicate #3372 2024-10-14 08:07:04 -07:00
glepnir
b1de227da4
fix: command LspStop can receive server name (#3367) 2024-10-14 15:17:15 +08:00
github-actions[bot]
4c2faa4e1b docs: update configs.md
skip-checks: true
2024-10-14 06:58:03 +00:00
John Ferlito
60f98302a3
fix: add graphql and css support for biome (#3370) 2024-10-14 14:56:25 +08:00
github-actions[bot]
d141895d1d docs: update configs.md
skip-checks: true
2024-10-12 05:26:19 +00:00
Rachel
944182b652
feat: poryscript-pls (#3366) 2024-10-12 13:26:05 +08:00
github-actions[bot]
c38af37e4e docs: update configs.md
skip-checks: true
2024-10-11 05:28:48 +00:00
Robzz
c358084486
docs(lsp_ai): fix docs not rendering properly (#3364) 2024-10-11 13:28:31 +08:00
Justin M. Keyes
ff69ecca55 docs: fix old URL 2024-10-09 20:52:54 +02:00
github-actions[bot]
d3f169f436 docs: update configs.md
skip-checks: true
2024-10-09 08:28:36 +00:00
Robzz
8411d985d6
feat: lsp-ai #3206 2024-10-09 01:28:23 -07:00
github-actions[bot]
ba1057cba0 docs: update configs.md
skip-checks: true
2024-10-09 05:22:56 +00:00