Page 1 of 2

about goto definition plugin

Posted: 19.08.2023 08:32
by SamC
Hello,
1.When use right button to goto definition, in bottom bar it shows the goto-definition plugin for this lexer is not installed. But I didn't find where is it(not in the addon/plugin folder).
2.Is there a plugin to extract method for the selected code like VScode?
3.I used to see there is a function to show the path for the file in status bar, but I cannot find it now. Please kindly point it out.
Thanks !

Posted: 19.08.2023 08:42
by main Alexey
1. for what lexer? different lexers - different plugins (if it's not LSP). if C++ lexer - install 'LSP Client' plugin and see
'LSP server for C/C++'
in https://wiki.freepascal.org/CudaText_plugins

2. 'to extract method for the selected code' - what is it?
3. when you hover mouse over ui-tab title, app shows filename in the tooltip. w/o options. OK?

Posted: 19.08.2023 11:23
by SamC
1.For Python,LSP server for Python and pyright are both available? Pyright is better?
2.like to change code
a = 1
to
def method():
a =1
return a
it's a vscode feature,just check if it already exist in cuda.
Thanks a lot!

Posted: 19.08.2023 15:09
by main Alexey
1. wiki page https://wiki.freepascal.org/CudaText_plugins has topics
19.1 LSP server for Python
19.2 LSP server for Python, pyright
so pyright is just another LSP server here.
which of 2 is better - IDK.
and you have 3rd choice - plugin "Python IntelliSense" which don't need LSP plugin.

Posted: 19.08.2023 15:13
by main Alexey
2. Seems curently 'extract method' is not supported in Cud, so I asked to the main LSP supporter:
https://github.com/CudaText-addons/cuda_lsp/issues/188

Posted: 19.08.2023 15:50
by SamC
main Alexey wrote:and you have 3rd choice - plugin "Python IntelliSense" which don't need LSP plugin.
Thanks for the 3rd method,I also found there is a command to extract function there, Awesome~
20230819234809.jpg

Posted: 19.08.2023 15:56
by main Alexey
I already forgot about these commands in plugin..

Posted: 19.08.2023 16:08
by SamC
When using Python IntelliSense or other plugin in the provided cuda-addon package,do I need to online?Or all the plugin can totally used offline,and I can just use a flash-disk to use it anywhere?

Posted: 19.08.2023 16:11
by main Alexey
online is not needed. plugin is offline.
(the same for LSP plugin).

Posted: 19.08.2023 16:12
by main Alexey
Codeium plugin exists - it need the online.