Add JSON LSP plugin

This commit is contained in:
Isaac Clayton
2022-07-07 15:22:16 +02:00
parent 923f093aca
commit 71e0555763
6 changed files with 98 additions and 36 deletions
+6 -1
View File
@@ -6,7 +6,7 @@ use std::path::PathBuf;
// #[import]
fn command(string: &str) -> Option<String> {
todo!()
None
}
// TODO: some sort of macro to generate ABI bindings
@@ -113,6 +113,11 @@ pub fn cached_server_binary(container_dir: PathBuf) -> Option<PathBuf> {
}
}
#[bind]
pub fn label_for_completion(label: String) -> Option<String> {
None
}
#[bind]
pub fn initialization_options() -> Option<String> {
Some("{ \"provideFormatter\": true }".to_string())