-
Notifications
You must be signed in to change notification settings - Fork 6
Not able to set cairo-ls settings in Helix IDE #47
Comments
For reference: helix-editor/helix#5245 |
Sorry for the late response. From the thread above, it looks like some settings are being passed through to the language server, but you have additional source files in certain folders that are not recognized during compilation. Is that correct? The language server also has a Can you try something like this?
|
Hi:)! I tried this: [[language]]
config = { cairoPath = [
"/Users/eliastazartes/code/theodo/kakarot/src",
"/Users/eliastazartes/code/theodo/kakarot",
"/Users/eliastazartes/code/theodo/kakarot/tests",
"tests",
"lib"
], sourceDir = "src", venvCommand = "source ~/cairo_venv/bin/activate", nileUseVenv = false, useVenv = true, nileVenvCommand = "source ~/cairo_venv/bin/activate" }
name = "cairo"
scope = "source.cairo"
injection-regex = "cairo"
file-types = ["cairo"]
indent = { tab-width = 2, unit = " " }
comment-token = "#"
language-server = { command = "cairols.sh" } But it appears the language server can't read this config somehow.
|
I couldn't get the config working either. Will need to look into it further. |
If you really need it for now, you could just edit the defaults in the source code and then build it by following https://github.com/ericglau/cairo-ls/blob/main/CONTRIBUTING.md -- only need the first 3 steps:
then you can find |
Hey:)!
I've been trying to set up cairo-ls in Helix. Opened a PR for getting the lsp up and running on Helix: #46.
Nonetheless, it appears I can't pass the settings to my config.
I try to pass in
sourceDir
,venvCommand
, etc. For some reason, the LSP does not recognize them. Would you have an idea for how to set these settings in other environments as VSCode?The text was updated successfully, but these errors were encountered: