aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lspconfig.txt
Commit message (Collapse)AuthorAgeFilesLines
* docs: ":LspInfo" in Nvim 0.12 #4256Justin M. Keyes2025-12-231-0/+3
| | | fix #4255
* docs: ":lsp ..." in Nvim 0.12 #4243Justin M. Keyes2025-12-161-0/+9
|
* feat: force-stop server with :LspStop! (bang) #4140Olivia Kinnear2025-10-231-2/+5
| | | | | | | | | | | | | | Problem: Some servers don't stop properly. Calling `:LspStop` _twice_ will induce a force-stop, but that is not easy to discover: https://github.com/neovim/neovim/blob/b67eff38fe19876ab228007897224ec04b58aa40/runtime/lua/vim/lsp/client.lua#L864-L866 > By default, it will just request the server to shutdown without force. If > you request to stop a client which has previously been requested to > shutdown, it will automatically escalate and force shutdown. Solution: Nvim should automatically force-stop after X seconds, but until that is supported, adding a bang "!" variant is reasonable.
* docs: remove outdated mention of "++force"Justin M. Keyes2025-10-211-3/+1
| | | | | | | This option does not actually say what its purpose is, and it likely is no longer relevant. close #4136
* refactor!: deprecate old framework/configs, Nvim 0.10 #4077Justin M. Keyes2025-09-171-0/+35
|
* fix!: drop support for multiple args in :LspStop/:LspRestart #3896Markus Koller2025-06-131-4/+4
| | | | | | | | | | Problem: :LspStop/:LspRestart support multiple args, which is unlikely to be used for interactive usage. These commands are intended for interactive usage, not scripts. Scripts should use the vim.lsp API. Solution: It is unlikely that users specify multiple args, so let's drop it to simplify the code and interface.
* fix: support :LspRestart without arguments #3895v2.3.0Markus Koller2025-06-101-1/+2
| | | | | | | | | Problem: After the refactoring in e4d1c8b for Neovim 0.11.2 this command now requires an argument. Solution: Restore the previous behaviour where `:LspRestart` defaults to restarting all active servers.
* ci(lint): migrate from single_file_support #3789Justin M. Keyes2025-04-261-15/+24
|
* docs: migrate docs to vim.lsp.config #3709Justin M. Keyes2025-04-131-131/+37
|
* docs: cleanup #3696Justin M. Keyes2025-04-051-270/+40
| | | | | | Begin referencing `vim.lsp.config()` in some places. Most of the docs can be fully removed after completing the migration to `vim.lsp.config()`.
* refactor: deprecate add_hook_before/after #3695Justin M. Keyes2025-04-051-22/+0
| | | | These are special-purpose functions that should never have been "public".
* feat: alias :LspInfo to `:checkhealth vim.lsp` #3663Justin M. Keyes2025-03-261-11/+4
| | | | | | | | | Problem: `:checkhealth lspconfig` has no benefits vs `:checkhealth vim.lsp`. Solution: - on Nvim 0.11+, `:LspInfo` is an alias to `:checkhealth vim.lsp` instead of `:checkhealth lspconfig`. - `lua/lspconfig/health.lua` will be removed in a few months.
* refactor: deprecate util.find_git_ancestordundargoc2024-12-141-3/+11
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* docs: how to get package.json parent dir #3506Guilherme Soares2024-12-131-2/+2
|
* refactor: deprecate util.find_package_json_ancestordundargoc2024-12-131-4/+12
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: remove outdated codedundargoc2024-12-081-3/+1
| | | | | Lspconfig requires neovim version 0.9 at the time of writing this, so discard any version checks and code for older versions.
* refactor: deprecate util.find_node_modules_ancestordundargoc2024-12-081-3/+8
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* docs: add language to codeblocks #3466dundargoc2024-11-261-14/+14
|
* feat: add silent on error optionMaria José Solano2024-11-231-0/+3
|
* feat: accept multiple clients/configs in LspRestart, LspStop #3438Guilherme Soares2024-11-171-7/+8
| | | | | | | | | | | | | | | | ## Problems: - `:LspStop` doesn't support list of client ids or config names. - `:LspRestart` doesn't support config names although supports list of client ids - Command completion uses ids and names, not allowing the user to hit enter immediately after finding the desired server ## Solution: - Unify `LspStop` and `LspRestart` implementation supporting lists of client ids and config names - Command completion only returns config names - Modify docs
* feat(docs): autogenerate default_config docsJustin M. Keyes2024-10-241-7/+7
| | | | | | | | | Problem: Docs are manually maintained everywhere for no good reason. Solution: - revert commit 9dc02492c4a457479f8a0ec7a65aac1852ff59c0 - provide a "gF" friendly link to the source
* docs: add requirement of a new server (#3368)glepnir2024-10-151-3/+3
| | | | | | * docs: add requirement of a new server Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* feat(lspinfo): replace :LspInfo with :checkhealth #3339Justin M. Keyes2024-10-021-14/+10
| | | | | | | | | | | | 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.
* feat: expose config definition as `config_def` #3335Justin M. Keyes2024-10-021-24/+24
| | | | | | | | | | | | | | Problem: Users/plugins may want to use the config definition without actually activating the config via setup(). Solution: - Expose `config_def` field and document it. - Also undeprecate some stuff that doesn't yet have a documented alternative. TODO: configs.lua sets `M.filetypes = config.filetypes` and other fields in ad-hoc fashion "for :LspInfo" but it's not clear when those fields are actually populated, and they don't source from `config_def`...
* docs: help tags for :LspFoo commandsJustin M. Keyes2024-10-011-12/+17
|
* docs: cleanup, deprecate APIs #3328Justin M. Keyes2024-09-291-183/+86
|
* feat: show deprecate servers list in LspInfo (#3308)glepnir2024-09-181-1/+2
| | | | | | | | | | | | * feat: show deprecate servers list in LspInfo In order to smoothly transition to the vim.lsp.start interface in the future, adding checkhealth here is meaningless. Only the lspinfo information window is available. So shown deprecate servers list in LspInfo and update the server deprecate remove version to 0.2.1. 0.2.0 is tagged too quickly cause some servers not removed. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* docs: delete lspconfig-keybindings section (#3175)Gregory Anders2024-05-231-69/+14
| | | | | | This section is way too verbose and encourages sloppy copy-pasting. Nvim already ships help documentation for configuring the LSP client, so instead of duplicating that information, point users toward upstream docs instead.
* fix: let core handle 'workspace/didChangeConfiguration' after init (#3023)Maria José Solano2024-02-241-1/+1
|
* fix: typo in util documentation (#2947)Evgeny Zislis2023-12-221-1/+1
|
* docs: fix typo in keybind section (#2924)Sten Arthur Laane2023-12-061-2/+2
| | | Co-authored-by: Sten Laane <stenarthur.laane@mil.ee>
* fix: util.root_pattern prioritises pattern order (#2885)Emilio Ziniades2023-11-181-1/+2
| | | | | | | | | | | | * fix: util.root_pattern prioritises pattern order Instead of traversing the filesystem upwards once and returning the first match of all the patterns, it traverses the filesystem upwards once for each pattern. This means that the order of the patterns provided matters, and the highest priority patterns should be put first. Also updated corresponding tests. * docs: update util.root_pattern description
* docs: rename deprecated `resolved_capabilities` -> `server_capabilities` (#2746)UnkwUsr2023-08-041-1/+1
| | | According to https://github.com/neovim/neovim/commit/c618b314c6a266806edf692122b16ba9ff7a8e10
* docs: make vimdocs consistent with readme (#2732)ii142023-07-251-55/+49
| | | Co-authored-by: ii14 <ii14@users.noreply.github.com>
* docs: fix typodundargoc2023-04-011-1/+1
|
* docs: fix typo (#2382)Raphael2023-01-071-1/+1
|
* docs: fix typo (#2310)Raphael2022-12-121-1/+1
|
* feat: support force stop language server (#2294)Raphael2022-12-071-1/+2
| | | | | | | * feat: support force stop language server * feat: use vim syntax * feat: update doc
* feat: support unnamed buffer with single_file_support (#2226)Raphael2022-12-061-0/+2
| | | | | | | | | | | * feat: support unnamed buffer with single_file_support * fix: make some code simple clear * feat: update doc * fix: grammar * fix: grammar
* docs: `vim.lsp.buf.formatting()` is deprecated (#2166)Horror Proton2022-10-021-1/+1
|
* Revert "fix: remove the config.commands (#2092)" (#2093)Raphael2022-08-261-0/+29
| | | This reverts commit 99e0dc9937b124dee7d8107185e804ff96466279.
* fix: remove the config.commands (#2092)Raphael2022-08-261-29/+0
| | | | | | | | | * fix: remove the config.commands * fix: format by stylua and remove comamnds test * fix: remove commands from doc * fix: remove unused function
* feat: improve LspInfo (#2081)Raphael2022-08-261-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: improve LspInfo * feat: update README for highlight * fix: wrong typo * fix: ci failed * fix: remove unnecessary block * fix: stylua format * fix: set default border to none * fix: update the doc * fix: define names in if statement * fix: use default_options to set border * fix: use available servers list * fix: fixup * fix: format by stylua * fix: use bufdelete event * fix: format * fix: add tips * fix: stylua format * fix: use wrap * fix: add 122 to luacheck ignore * fix: reset the default options * fix: merge master * fix: remove unecessary code * feat: update the highlight group * feat: update doc for highlight * fix: remove highlig from README * fix: remae highlight group in doc
* feat!: 0.7 API update (#1984)Ranjith Hegde2022-08-231-24/+39
| | | | | | | | | | | * switch to lua api for autocommands * switch to nvim_create_user_command * move to lua plugin initialization NOTICE: Defining commands in server configurations will be deprecated in future releases. See `:help lspconfig.txt` to setup the same in an `on_attach` function. Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
* docs: add an entry about the setup-hook (#1873)kylo2522022-08-231-0/+22
|
* docs: unverbose, mention "settings" paramJustin M. Keyes2022-06-131-87/+47
| | | | | | | | | | | | | | | | | Problem: - The docs are verbose. - The "settings" param is not really clarified anywhere. Solution: - Mention the "settings" param in the README. - Tighten up the wording. - Remove the "Use a loop to conveniently call 'setup'..." advice in the docs. It confuses users and doesn't really save much code. - Start to reduce the scope of nvim-lspconfig. - For example, it is redundant for it to document general LSP things. Thus, the help section *lspconfig-lsp* was removed. closes #1951
* fix(docs): vim.lsp.buf.format -> vim.lsp.buf.formatting (#1936)Kurtis2022-06-031-1/+1
| | | | | | There doesn't appear to actually be a function called `format`. Instead, I believe what we actually want here is a call `formatting`. Co-authored-by: Kurtis Nusbaum <kcommiter@gmail.com>
* fix(docs): update example keybindings documentation (#1899)Kurtis2022-06-011-17/+20
|
* feat: add :LspLog command #1917William Boman2022-05-221-1/+1
|
* chore: remove all package.json (#1656)Michael Lingelbach2022-02-251-10/+0
|