Skip to content

Commit

Permalink
feat: add astronvim editor client
Browse files Browse the repository at this point in the history
feat: add `astronvim` editor client
  • Loading branch information
vyfor authored Apr 19, 2024
2 parents 1feb22a + 2269dfc commit 963cdb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ require('cord').setup({
},
editor = {
image = nil, -- Image ID or URL in case a custom client id is provided
client = 'neovim', -- vim, neovim, lunarvim, nvchad or your application's client id
client = 'neovim', -- vim, neovim, lunarvim, nvchad, astronvim or your application's client id
tooltip = 'The Superior Text Editor', -- Text to display when hovering over the editor's image
},
display = {
Expand Down
Binary file added assets/editor/astronvim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ pub extern "C" fn init(
1220296082861326378,
format!("{}/editor/nvchad.png", GITHUB_ASSETS_URL),
),
"astronvim" => (
1230866983977746532,
format!("{}/editor/astronvim.png", GITHUB_ASSETS_URL),
),
id => (
id.parse::<u64>().expect("Invalid client ID"),
ptr_to_string(image),
Expand Down

0 comments on commit 963cdb6

Please sign in to comment.