Skip to content

Commit

Permalink
Merge pull request #12 from SUSTech-data/abao/fix_cmp
Browse files Browse the repository at this point in the history
fix: kernel completion serialize issue
  • Loading branch information
AbaoFromCUG authored Aug 27, 2024
2 parents 49d3fd5 + 303eb78 commit 2fc448f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doc/neopyter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Fields ~
{on_attach} `(optional)` `(fun(bufnr:number))`
{jupyter} `(optional)` neopyter.JupyterOption
{highlight} `(optional)` neopyter.HighlightOption
{textobject} `(optional)` neopyter.TextObjectOption
{parser} `(optional)` neopyter.ParserOption

------------------------------------------------------------------------------
Expand Down Expand Up @@ -60,6 +61,9 @@ Fields ~
-- Dim all cells except the current one
shortsighted = true,
},
textobject = {
enable = true,
},
parser = {
line_magic = true,
trim_whitespace = false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neopyter",
"version": "0.2.5",
"version": "0.2.6",
"description": "A JupyterLab extension. Integrate JupyterLab and Neovim",
"keywords": [
"jupyter",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const neopyterPlugin: JupyterFrontEndPlugin<void> = {
}
);
console.log(completionItems);
return completionItems.items;
return completionItems.items.map(({ type, label, insertText, source }) => ({ type, label, insertText, source }));

Check failure on line 340 in src/index.ts

View workflow job for this annotation

GitHub Actions / deploy

Property 'source' does not exist on type 'ICompletionItem'.
}
};
const cellDispatcher = {
Expand Down

0 comments on commit 2fc448f

Please sign in to comment.