Comments (10)
I now get highlighting and goto definition and stuffz !!
from helix.
https://docs.helix-editor.com/install.html#build-from-source
Ah, so you mean
Now copy the runtime/ directory somewhere. Helix will by default look for the runtime inside the same folder as the executable, but that can be overriden via the HELIX_RUNTIME environment variable.
I was confused about that either. No wonder I didn't get syntax highlighting. Oh, I found it. Have to set HELIX_RUNTIME=$PWD
. Maybe we should update the docs.
from helix.
Runtime variable?
from helix.
An example from my personal configuration.
/tmp $ which hx
/Users/kevinsjoberg/bin/hx
/tmp $ ls -l $HOME/.config/helix/
total 8
-rw-r--r-- 1 kevinsjoberg staff 1560 Jun 2 22:09 helix.log
drwxr-xr-x@ 3 kevinsjoberg staff 96 Jun 3 04:07 runtime
/tmp $ echo $HELIX_RUNTIME
/Users/kevinsjoberg/.config/helix/runtime
@pickfire I believe hx
will look for the runtime
folder in the same directory as the binary by the default. This can be changed by setting the HELIX_RUNTIME
environment variable to a different directory.
from helix.
@kevinsjoberg thx for the clear example.
I downloaded the release, but did not know where to put the things. 👯
from helix.
Yea I was thinking to update the docs, with this explicit information.
So that It gets easy to open hx
and start to play around and making it more frictionless.
from helix.
The binary looks for runtime/
where the executable is located, or for a HELIX_RUNTIME
override.
Lines 47 to 57 in abe8a83
If running this in development via cargo run
I recommend using an .envrc
file to automatically set the var. We could also try detecting that (if debug mode) and setting it to the correct path.
For packaged installs, I recommend unpacking the files somewhere, then making a hx
wrapper that sets the var and runs the binary. Example from Arch Linux
from helix.
I agree with the package install that sets the VAR to some default where the default runtime is set on all comp.
@archseer
For releases or anything in the documentation, we could add commands that would make it easier to add the ENV to point to a ~/.config/helix
by default if not specified.
Maybe this is what you mean by the package installs. But would be great to get this in right away.
Package installer for me did not work:
I did not get it to install for my Ubuntu 20.04 distro though. Maybe this is just me
from helix.
I don't think it correctly detects it on Windows without the envvar.
from helix.
I think this should be solved in 0.2.0, we have more reasonable defaults now.
from helix.
Related Issues (20)
- Support sqls language server for SQL
- shows "file modified by external process" while trying to save a file on external hdd HOT 1
- Add support stylus language
- Global search no longer adds into search history HOT 8
- Initial delay in the new global search experience HOT 10
- Add support for Liquid
- Select items from history in Pickers (global_search) HOT 1
- No longer possible to filter global search results by file name HOT 3
- Searching for \0 leaks error message into UI HOT 2
- Global search path filter becoming part of the search history HOT 1
- C# debugging doesn't work
- Add command to toggle inline diagnostics HOT 1
- Global Fuzzy Search
- hx --grammar build breaks with tree sitter grammars that expect users to generate the parse.c file HOT 3
- Open File Picker by default when simply doing "hx" HOT 4
- Incorrect syntax highlighting of functions in Haskell typeclasses HOT 1
- Add an option to write files with escalated privileges (sudo) HOT 1
- format_selections mangles the surrounding text HOT 2
- Debug Launch Failed with healthy setup
- Auto-save after delay not working when auto-format is enabled for Python
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helix.