manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.36k stars 197 forks source link

feat: add emacs-jupyter completion backend for acm in org babel #890

Closed sawyerzheng closed 3 months ago

sawyerzheng commented 3 months ago

add a emacs-jupyter backend for acm babel completion

  1. This backend can be activated by set acm-enable-jupyter to t
  2. This backend only work when in a org-mode source code block and its language starts with "jupyter"
  3. It still can make completion even though the import statement in a previous source code block
  4. It need to start the jupyter in the org mode buffer first

image

sawyerzheng commented 3 months ago

new commit, (1) moved lsp-bridge-jupyter-complete function to acm-backend-jupyter.el (2) filtered the candidate with the current-symbol before cursor when current-symbol is a string

image

manateelazycat commented 3 months ago

Thanks