File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1455,7 +1455,7 @@ impl Config {
1455
1455
limit : self . completion_limit ( source_root) . to_owned ( ) ,
1456
1456
enable_term_search : self . completion_termSearch_enable ( source_root) . to_owned ( ) ,
1457
1457
term_search_fuel : self . completion_termSearch_fuel ( source_root) . to_owned ( ) as u64 ,
1458
- fields_to_resolve : if self . client_is_helix ( ) {
1458
+ fields_to_resolve : if self . client_is_helix ( ) || self . client_is_neovim ( ) {
1459
1459
CompletionFieldsToResolve :: empty ( )
1460
1460
} else {
1461
1461
CompletionFieldsToResolve :: from_client_capabilities ( & client_capability_fields)
@@ -2183,6 +2183,10 @@ impl Config {
2183
2183
pub fn client_is_helix ( & self ) -> bool {
2184
2184
self . client_info . as_ref ( ) . map ( |it| it. name == "helix" ) . unwrap_or_default ( )
2185
2185
}
2186
+
2187
+ pub fn client_is_neovim ( & self ) -> bool {
2188
+ self . client_info . as_ref ( ) . map ( |it| it. name == "Neovim" ) . unwrap_or_default ( )
2189
+ }
2186
2190
}
2187
2191
// Deserialization definitions
2188
2192
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_helix ( ) {
44
+ resolve_provider : if config. client_is_helix ( ) || config . client_is_neovim ( ) {
45
45
None
46
46
} else {
47
47
Some ( config. caps ( ) . completions_resolve_provider ( ) )
You can’t perform that action at this time.
0 commit comments