jupyter-kernel.nvim icon indicating copy to clipboard operation
jupyter-kernel.nvim copied to clipboard

Working with vim-lsp

Open mikh3x4 opened this issue 1 year ago • 1 comments

How hard would it be to make this work with a different completion engine like vim-lsp?

mikh3x4 avatar Mar 14 '23 01:03 mikh3x4

Hi. I don't use vim-lsp before so I'm not sure. But all this plugin really do wrt to nvim-cmp is just a thin wrapper around the vim's cmd JupyterComplete https://github.com/lkhphuc/jupyter-kernel.nvim/blob/main/lua/jupyter_kernel/cmp.lua#L22 My JupyterComplete is in turn another thin wrapper around jupyter_client.

I saw that vim-lsp hook into omnifunc, so you might want to check out https://github.com/mtikekar/nvim-send-to-term for a similar completion wrapper compatible with omnifunc. But I suspect if you change omnifunc from vim.lsp into jupyter kernel, you then will lose completion provided by the lsp.

lkhphuc avatar Mar 21 '23 00:03 lkhphuc