Chris Bandy
4ea9083b6d
refactor: replace vim.loop with vim.uv #3703
...
The former is deprecated in neovim 0.10. Remove the check added in
9b89ba5f158f73779cd58d0bb2783dfb40b28b0e.
See: https://github.com/neovim/neovim/blob/v0.10.0/runtime/doc/deprecated.txt#L55
2025-04-10 15:48:31 -07:00
dundargoc
9b89ba5f15
refactor: replace all instances of vim.uv with vim.loop
...
We still support neovim 0.9 currently, so we can't use vim.uv. Also add
a check so we don't accidentally reintroduce it.
2024-12-02 11:12:18 +01:00
glepnir
5d8288c794
fix: using method string instead constant ( #3468 )
...
Using method string instead constant avoid nil error in low release version
2024-11-27 13:13:20 +08:00
dundargoc
830ec3893e
refactor: remove internal implementation of util.path.sanitize #3464
...
Return value from `vim.fs.normalize` instead.
2024-11-26 13:42:28 -08:00
dundargoc
3eaab290c7
refactor: remove implementation of util.path.dirname #3460
...
Instead, just return the result of vim.fs.dirname.
2024-11-26 06:48:35 -08:00
glepnir
064221eed3
Revert "fix: check existing_client support workspaceFolder ( #3452 )" ( #3459 )
...
This reverts commit fe88eade4ab50fca9ace99205cad1d91645ed9e8.
2024-11-26 19:18:12 +08:00
glepnir
fe88eade4a
fix: check existing_client support workspaceFolder ( #3452 )
...
if existing_client does not support workpaceFolder
should spawn a new server instance
2024-11-26 14:19:10 +08:00
Maria José Solano
2eccb418f2
feat: add silent on error option
2024-11-23 20:30:34 -08:00
Maria José Solano
8d9fd3581a
feat: use vim.lsp.start instead of vim.lsp.start_client
2024-11-23 20:30:34 -08:00
Justin M. Keyes
38cd54b706
fix(health): support Nvim 0.9
...
fix #3342
2024-10-02 21:21:27 +02:00
dundargoc
c25b9dd6bd
refactor: replace deprecated vim.loop with vim.uv
2024-10-02 12:09:17 +02:00
Justin M. Keyes
bedb2a0df1
refactor: rename "server_configurations" => "configs" #3330
...
Problem:
The name `server_configurations` is extremely verbose and irritatingly
formal and dogmatic. This overlong name is a constant nuisance when
reading, writing, and coding.
It's also not even correct: these configurations are just as much
"client" configurations as they are "server" configurations.
Solution:
- Rename to a shorter name.
- Leave placeholder files for any old URLs that link to the old
location.
2024-10-01 05:39:12 -07:00
glepnir
5f9e043922
fix: root_dir support string value directly ( #3313 )
...
root_dir in `vim.lsp.ClientConfig` can be a string type and
in our annoation also mentioned `string|function` type. but
actually root_dir does not support string type. add a type
check of root_dir and then we can use `vim.fs.root` directly.
2024-09-23 14:28:32 +08:00
Gregory Anders
2a1999b817
refactor: handle updated signature of lsp.start_client ( #3126 )
...
https://github.com/neovim/neovim/pull/28478 changes the signature of
start_client to return two values: client_id or nil and error message or
nil. start_client no longer calls vim.notify directly, so if there is an
error we must call vim.notify ourselves.
2024-04-26 10:07:56 -05:00
Patricio Serrano
6e5c78ebc9
fix: revert to not requiring single_file_mode and root_dir check ( #3088 )
2024-03-24 13:39:12 +08:00
Lewis Russell
e172dd599c
refactor: general cleanup
2024-03-07 12:01:10 +00:00
Carlo Sala
82a4b3017e
fix: update lua types to match latest nightly ( #3048 )
2024-03-05 14:12:29 +08:00
Patricio Serrano
0a1a2aa549
fix: enforce single file mode check when root_dir differs from client ( #2998 )
...
fixes issue [#2959 ](https://github.com/neovim/nvim-lspconfig/issues/2959#issue-2068768094 )
2024-02-06 13:54:41 +08:00
Lewis Russell
204f08ea40
refactor: move manager to separate module
...
- Move manager logic to own module
- Move async logic to own module
- Improve type annotations
2023-08-22 13:22:07 +01:00