From 303eb789a610843a3ae9bd537876a0c99d472a7a Mon Sep 17 00:00:00 2001 From: Abao Zhang Date: Mon, 26 Aug 2024 22:04:30 +0800 Subject: [PATCH] fix: kernel completion serialize issue --- doc/neopyter.txt | 4 ++++ package.json | 2 +- src/index.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/neopyter.txt b/doc/neopyter.txt index 733a049..1200ddc 100644 --- a/doc/neopyter.txt +++ b/doc/neopyter.txt @@ -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 ------------------------------------------------------------------------------ @@ -60,6 +61,9 @@ Fields ~ -- Dim all cells except the current one shortsighted = true, }, + textobject = { + enable = true, + }, parser = { line_magic = true, trim_whitespace = false, diff --git a/package.json b/package.json index 560af0b..35cb8ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "neopyter", - "version": "0.2.5", + "version": "0.2.6", "description": "A JupyterLab extension. Integrate JupyterLab and Neovim", "keywords": [ "jupyter", diff --git a/src/index.ts b/src/index.ts index 6ca7450..ef3c1c7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -337,7 +337,7 @@ const neopyterPlugin: JupyterFrontEndPlugin = { } ); console.log(completionItems); - return completionItems.items; + return completionItems.items.map(({ type, label, insertText, source }) => ({ type, label, insertText, source })); } }; const cellDispatcher = {