Start switching JSON LSP adapter to plugin (take 2)
This commit is contained in:
parent
35b2eff29c
commit
7dd3114a7a
22 changed files with 372 additions and 100 deletions
10
plugins/json_language/Cargo.toml
Normal file
10
plugins/json_language/Cargo.toml
Normal file
|
@ -0,0 +1,10 @@
|
|||
[package]
|
||||
name = "json_language"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
plugin = { path = "../../crates/plugin" }
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
6
plugins/json_language/src/lib.rs
Normal file
6
plugins/json_language/src/lib.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
use plugin::prelude::*;
|
||||
|
||||
#[bind]
|
||||
pub fn add(a: (f64, f64)) -> f64 {
|
||||
a.0 + a.1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue