-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18e2694
commit 50dd532
Showing
6 changed files
with
381 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "markdown-oxide-zed" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
zed_extension_api = "0.0.4" | ||
|
||
[lib] | ||
crate-type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
id = "markdown-oxide" | ||
name = "Markdown Oxide" | ||
description = "Obsidian-Inspired PKM Language Server for Zed" | ||
version = "0.0.1" | ||
schema_version = 1 | ||
authors = ["Felix Zeller <[email protected]>"] | ||
repository = "https://github.com/Feel-ix-343/markdown-oxide" | ||
|
||
|
||
[language_servers.markdown-oxide] | ||
name = "Markdown-Oxide LSP" | ||
language = "Markdown" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use zed::Command; | ||
use zed_extension_api as zed; | ||
|
||
struct Moxide { | ||
|
||
} | ||
|
||
|
||
impl zed::Extension for Moxide { | ||
fn language_server_command( | ||
&mut self, | ||
config: zed::LanguageServerConfig, | ||
worktree: &zed::Worktree, | ||
) -> zed::Result<zed::Command> { | ||
|
||
|
||
zed::set_language_server_installation_status( | ||
&config.name, | ||
&zed::LanguageServerInstallationStatus::Downloading, | ||
); | ||
|
||
Ok(Command { | ||
command: "markdown-oxide".to_string(), | ||
args: Default::default(), | ||
env: Default::default() | ||
}) | ||
|
||
} | ||
|
||
fn new() -> Self | ||
where | ||
Self: Sized { | ||
|
||
Moxide{} | ||
} | ||
} | ||
|
||
zed::register_extension!(Moxide); |