Closed gauravcodepro closed 1 week ago
I checked the language sever protocol (lsp settings) and it says that for each language you have to create a separate json.
Yes, file lsp_NNNNN.json in the 'settings' dir of CudaText. you did not find the 'settings' dir? it's location is here:
https://wiki.freepascal.org/CudaText#Location_of_'settings',_'py',_'data'_folders
on linux, it is usually ~/.config/cudatext.
I was not able to find where to locate the settings and where to add these.
See above mentioned wiki page. Also must read wiki page: https://wiki.freepascal.org/CudaText#Configuration
Does it help?
The details about lsp_NNNNN.json with examples: https://wiki.freepascal.org/CudaText_plugins
22 LSP Client
22.1 LSP server for Python
22.2 LSP server for Python, pyright
22.3 LSP server for JavaScript/ReactJS
22.4 LSP server for TypeScript
22.5 LSP server for C/C++
22.6 LSP server for C#
22.7 LSP server for CSS/SCSS/LESS
22.8 LSP server for HTML
22.9 LSP server for Java
22.10 LSP server for Nim
22.11 LSP server for Rust
22.12 LSP server for AutoHotkey
22.13 LSP server for Red
22.14 LSP server for PHP
22.15 LSP server for Bash
22.16 LSP server for D
22.17 LSP server for Go
22.18 LSP server for Lua
22.19 LSP server for Scala
22.20 LSP server for Fortran
22.21 LSP server for Markdown
22.22 LSP server for V
22.23 LSP server Vale
Thank you and this is a very proper reply and suggestion, and i thank you for the same. Additionally, i want to ask that do i need to make a separate lsp file for each of the language i code in or i can combine all of them in one json.
Thank you for the time and constructive and helpful reply. Gaurav
As the wiki tells in https://wiki.freepascal.org/CudaText_plugins#LSP_Client
In the server config "lsp_*.json", key "lexers", you need to specify the mapping between CudaText lexer names and LSP language names.
so it is one file per language.
Thank you and this is what i thought but i still asked. Better to ask rather than wasting time in thinking by myself and still not sure. Thank you for the answer and time in replying.
Gaurav
Hi, thank you writing the Cuda text, which i came across recently and it is much faster than other text editors and this has allowed me to write faster. However the language server is not working, would it be possible to integrate the language server protocol.
I checked the language sever protocol (lsp settings) and it says that for each language you have to create a separate json. I was not able to find where to locate the settings and where to add these.
Can you help me with the same.
Thank you, Gaurav