You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
before I ask my question I would like to give you some background on what I try to do.
I'm interested in The Language Server Protocol (LSP) and Tree-Sitter: https://www.janwalter.org/jekyll/lsp/2022/10/01/language-servers.html
And while investigating both I stumbled across Zed. To test what's there already
I checked out two languages to experiment with, Python and C (or C++).
As a starting point I wanted to see how good I can explore existing Python code
and to make the connection between C and Python I thought I start with SCons: https://scons.org
A Python based tool to compile (e.g. C code).
Now to my question. SCons uses Python files, which do not use the .py extension,
like e.g. SConstruct and I would like to know how I can make Zed aware of that,
so I can still use all the other methods provided to explore Python code, e.g.
jump to a definition. It's a tricky one because those SConstruct files are called
from another file (in my case /Users/jan/Library/Python/3.10/bin/scons),
which is also Python code and does not use the .py extension:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
before I ask my question I would like to give you some background on what I try to do.
I'm interested in The Language Server Protocol (LSP) and Tree-Sitter:
https://www.janwalter.org/jekyll/lsp/2022/10/01/language-servers.html
And while investigating both I stumbled across Zed. To test what's there already
I checked out two languages to experiment with, Python and C (or C++).
As a starting point I wanted to see how good I can explore existing Python code
and to make the connection between C and Python I thought I start with SCons:
https://scons.org
A Python based tool to compile (e.g. C code).
Now to my question. SCons uses Python files, which do not use the .py extension,
like e.g. SConstruct and I would like to know how I can make Zed aware of that,
so I can still use all the other methods provided to explore Python code, e.g.
jump to a definition. It's a tricky one because those SConstruct files are called
from another file (in my case
/Users/jan/Library/Python/3.10/bin/scons
),which is also Python code and does not use the .py extension:
In Emacs the syntax highlighting would be easy to do because you could simply open the file and do:
Maybe followed by:
To activate the Tree-Sitter syntax highlighting ...
Anyway, I asked my question and everything I have seen so far regarding Zed looks really promising!
Thanks,
Jan
Beta Was this translation helpful? Give feedback.
All reactions