File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1549,7 +1549,7 @@ impl Config {
1549
1549
limit : self . completion_limit ( source_root) . to_owned ( ) ,
1550
1550
enable_term_search : self . completion_termSearch_enable ( source_root) . to_owned ( ) ,
1551
1551
term_search_fuel : self . completion_termSearch_fuel ( source_root) . to_owned ( ) as u64 ,
1552
- fields_to_resolve : if self . client_is_neovim ( ) {
1552
+ fields_to_resolve : if self . client_is_neovim ( ) || self . client_is_vim_lsp ( ) {
1553
1553
CompletionFieldsToResolve :: empty ( )
1554
1554
} else {
1555
1555
CompletionFieldsToResolve :: from_client_capabilities ( & client_capability_fields)
@@ -2362,6 +2362,10 @@ impl Config {
2362
2362
pub fn client_is_neovim ( & self ) -> bool {
2363
2363
self . client_info . as_ref ( ) . map ( |it| it. name == "Neovim" ) . unwrap_or_default ( )
2364
2364
}
2365
+
2366
+ pub fn client_is_vim_lsp ( & self ) -> bool {
2367
+ self . client_info . as_ref ( ) . map ( |it| it. name == "vim-lsp" ) . unwrap_or_default ( )
2368
+ }
2365
2369
}
2366
2370
// Deserialization definitions
2367
2371
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
41
41
} ) ) ,
42
42
hover_provider : Some ( HoverProviderCapability :: Simple ( true ) ) ,
43
43
completion_provider : Some ( CompletionOptions {
44
- resolve_provider : if config. client_is_neovim ( ) {
44
+ resolve_provider : if config. client_is_neovim ( ) || config . client_is_vim_lsp ( ) {
45
45
config. completion_item_edit_resolve ( ) . then_some ( true )
46
46
} else {
47
47
Some ( config. caps ( ) . completions_resolve_provider ( ) )
You can’t perform that action at this time.
0 commit comments