diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-02 06:57:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-02 06:57:18 -0700 |
| commit | e6569c18c21be5166e4b9cc7530e828b8285c84e (patch) | |
| tree | 72801068988c64be91dd543cddc71ab226766551 /doc/lspconfig.txt | |
| parent | ci: refactor ci output (diff) | |
| download | nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.tar nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.tar.gz nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.tar.bz2 nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.tar.lz nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.tar.xz nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.tar.zst nvim-lspconfig-e6569c18c21be5166e4b9cc7530e828b8285c84e.zip | |
feat(lspinfo): replace :LspInfo with :checkhealth #3339
Problem:
:LspInfo has its own "inner platlform" of highlights, mappings etc. And
it doesn't integrate with :checkhealth.
Solution:
- Move the lspinfo code to a healthcheck.
- LspInfo features such as highlights, "floating window" presentation,
etc., should be added to :checkhealth in Nvim core, if they are really
needed.
- Define a "q" mapping until Nvim stable has that in :checkhealth.
Diffstat (limited to 'doc/lspconfig.txt')
| -rw-r--r-- | doc/lspconfig.txt | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index d5a44170..0ba19021 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -107,8 +107,7 @@ overrides to `setup{}` are: `pyright.disableOrganizeImports`: `boolean` Nested keys need to be translated into a nested table and passed to - the settings field in `setup{}` as follows: -> + the settings field in `setup{}` as follows: >lua require('lspconfig').pyright.setup{ settings = { pyright = { @@ -317,8 +316,8 @@ The `root_dir` key in `config` and `setup` can hold any function of the form returns nil | string > This allows for rich composition of root directory patterns which is necessary -for some project structures. Example (for Kotlin): -> +for some project structures. Example (for Kotlin): >lua + local root_files = { 'settings.gradle', -- Gradle (multi-project) 'settings.gradle.kts', -- Gradle (multi-project) @@ -369,6 +368,7 @@ standard for single-file mode, lspconfig will adopt that standard. COMMANDS *lspconfig-commands* :LspInfo *:LspInfo* +Deprecated alias to `:check lspconfig`. Shows the status of all configured language servers. Note that client id refers to the Nvim RPC channel connected to a given language server. Also lists deprecated servers. @@ -459,8 +459,8 @@ Note that it will not report any configuration changes applied in LOGGING *lspconfig-logging* When debugging language servers, it is helpful to enable additional logging in -the built-in client, specifically considering the RPC logs. Example: -> +the built-in client, specifically considering the RPC logs. Example: >lua + vim.lsp.set_log_level 'trace' if vim.fn.has 'nvim-0.5.1' == 1 then require('vim.lsp.log').set_format_func(vim.inspect) @@ -486,14 +486,10 @@ from `lspconfig` in time. ============================================================================== Highlights *lspconfig-highlight* -LspInfoTitle Client name -LspInfoList Server name list -LspInfoFiletype `filetypes` area -LspInfoTip Tip -LspInfoBorder Window border - To set the border use: > - require('lspconfig.ui.windows').default_options.border = 'single' -< Accepts the same values as the `border` option to |nvim_open_win()| +WARNING: The `require('lspconfig.ui.windows')` API was removed. +LspInfo is provided by a healthcheck instead: > + :checkhealth lspconfig +< ============================================================================== |
