aboutsummaryrefslogtreecommitdiffstats
path: root/test/lspconfig_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* revert: "refactor!: make available_servers function private" #3589dundargoc2025-01-271-1/+1
| | | | | | | | This reverts commit e118ce58dab72c17216292eef7df4cee3cf60885. It turns out `util.available_servers` is used more than anticipated, so we revert the privatization for the time being. Closes https://github.com/neovim/nvim-lspconfig/issues/3588
* refactor!: make available_servers function privatedundargoc2025-01-211-1/+1
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: silence luals warningsdundargoc2024-12-221-0/+2
|
* refactor: deprecate util.path.joindundargoc2024-12-211-10/+0
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor!: remove util.path.is_absolutedundargoc2024-12-141-13/+0
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor!: remove util.path.escape_wildcardsdundargoc2024-12-141-15/+0
| | | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* refactor: deprecate util.path.is_dir #3475dundargoc2024-11-281-24/+0
| | | Work on https://github.com/neovim/nvim-lspconfig/issues/2079
* refactor: deprecate util.path.is_file #3474dundargoc2024-11-281-29/+0
|
* refactor: deprecate `util.path.exists`dundargoc2024-11-271-30/+0
| | | | | | Use `vim.uv.fs_stat` instead. Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
* fix: util.root_pattern prioritises pattern order (#2885)Emilio Ziniades2023-11-181-1/+1
| | | | | | | | | | | | * 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
* test: remove test depend and use vusted (#2603)Raphael2023-05-111-242/+162
|
* feat: rename sumneko_lua -> lua_ls (#2439)figsoda2023-02-121-1/+1
| | | | | | | | | | | * feat: rename sumneko_lua -> lua_language_server * refactor(sumneko_lua): use vim.deprecate * refactor: handle deprecated server aliases in one place * refactor: put server aliases in a function * feat: rename lua_language_server -> lua_ls
* fix: escape wildcards patterns when calling glob (#2111) (#2122)emmanueltouzery2022-09-091-0/+16
|
* feat: pass user config to the on_setup hook (#2114)William Boman2022-09-081-0/+18
| | | | | | | This is to allow 3rd party plugins to discern between what is lspconfig's vendored server config and what the user provided. Currently, these are merged into a single table which is passed to the on_setup hook. Passing user_config as a 2nd argument would allow 3rd party plugins to apply a more sensible precedence of configs.
* Revert "fix: remove the config.commands (#2092)" (#2093)Raphael2022-08-261-0/+35
| | | This reverts commit 99e0dc9937b124dee7d8107185e804ff96466279.
* fix: remove the config.commands (#2092)Raphael2022-08-261-35/+0
| | | | | | | | | * fix: remove the config.commands * fix: format by stylua and remove comamnds test * fix: remove commands from doc * fix: remove unused function
* feat!: 0.7 API update (#1984)Ranjith Hegde2022-08-231-3/+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>
* feat: allow attaching to paths inside archives (#1687)Stéphan Kochen2022-08-231-0/+23
|
* fix: only consider servers that have been set up as available (#2066)William Boman2022-08-231-0/+14
| | | | | * test: add failing test * fix(lspconfig): only consider servers that have been set up as available
* feat(configs): use client capabilities by default, deep-extend user-provided ↵jdrouhard2022-05-041-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | capabilities #1889 Previously, vim.lsp.protocol.make_client_capabilities() was used if no capabilities were specified in either the user-provided config or the default config (base or server). Now, the base default config table has a capabilities key with the value of make_client_capabilities(). When creating the finalized configuration for a server, it simply uses the finalized config which is the user-provided config deep extended by the default config (which now contains the default capabilities). This means that users will no longer have to create their own customized capabilities tables seeded from vim.lsp.protocol.make_client_capabilities(). They simply need to create the parts that are new or different from the defaults and pass that as the capabilities. The rest of the defaults are filled in automatically. For this to work properly, some tbl_extend calls were changed to tbl_deep_extend. tbl_extend will not recursively update nested tables, so using it wipes out any server provided defaults in nested config keys (such as capabilities) and won't properly fill in the "rest" of the capabilities if the user provided a smaller capabilities key in their config. Changing to tbl_deep_extend ensures server-specific configuration values are preserved and that the finalized config at least contains defaults for all client-supported capabilities. For example, clangd's config default has: ``` local default_capabilities = { textDocument = { completion = { editsNearCursor = true, }, }, offsetEncoding = { 'utf-8', 'utf-16' }, } ``` Prior to this commit, this was the full vim.lsp.protocol.make_client_capabilities() extended with those extra values. However, if a user provided their _own_ capabilities to the setup() function, tbl_extend wiped these extra values out and replaced it with the users' capabilities, which was likely only vim.lsp.protocol.make_client_capabilities() with some _other_ tweaks. Now, clangd can simply provide the extras, and the setup() function will normalize the config with all of user-provided, server-specific, and base default capabilities.
* chore: change stylua to single quotes (#1068)Michael Lingelbach2021-07-131-26/+26
|
* ci: lint and format with styluaMichael Lingelbach2021-07-031-57/+63
|
* Rename nvim_lsp to lspconfigHirokazu Hata2020-09-061-0/+188