about goto definition plugin

SamC
Posts: 207
Joined: 12.08.2023 00:49

about goto definition plugin

Post 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 !
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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?
SamC
Posts: 207
Joined: 12.08.2023 00:49

Post 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!
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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
SamC
Posts: 207
Joined: 12.08.2023 00:49

Post 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
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I already forgot about these commands in plugin..
SamC
Posts: 207
Joined: 12.08.2023 00:49

Post 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?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

online is not needed. plugin is offline.
(the same for LSP plugin).
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Codeium plugin exists - it need the online.
Post Reply