Open hsanter opened 2 months ago
You can got completion in org-src block directly, don't need C-c C-c
How do I do this? By default the only completions I get within src-blocks are for dictionary words at the moment with only the config above as far as lsp-bridge goes. No language-specific suggestions happen.
Move cursor to org-src block, and check lang-name
in https://github.com/manateelazycat/lsp-bridge/blob/8d0e32effab5a4fee2c7d76886cd4a62bad96449/lsp-bridge-org-babel.el#L67 ?
lang-name
in that function is being set to nil
right now based on running M-x debug-on-entry
for that function and then running it with cursor in the python org src-block.
My org-src-lang-modes
does contain ("python" . python) which I believe is appropriate.
Evaluating (org-element-property :language lsp-bridge-org-babel--info-cache)
by itself with cursor in the src-block also returns nil
.
Can you try emacs -Q
and only load lsp-bridge for test?
GNU Emacs 28.0.50 (build 1, aarch64-apple-darwin20.5.0, NS appkit-2022.50 Version 11.4 (Build 20F71)) of 2021-07-19
lsp-bridge correctly turns on when opening a .py file. The following gets logged in Messages buffer the first time file is opened:
[LSP-Bridge] found language server: /Users/aosc/opt/anaconda3/bin/basedpyright-langserver [LSP-Bridge] Active file '.py’, enjoy hacking!
However, when opening an org-src block with
C-c '
, I do not get that message and do not get any python-specific completion suggestions:Is this normal behavior? If so, is there a way to enable lsp-bridge to recognize python major-mode buffers created from
C-c '
?Thank you!