@jarkko I've being using vim/neovim for more than 10 years, and it's the first time that I hear about helix.
Somehow I'm quite impressed that whenever you press some shortcut, it shows the available options (like pressing g and seeing all possible movements possible, like list line, or first file of the file).
Thanks a lot for sharing! It seems much more polished than having neovim plus a ton of plugins!
@jarkko I agree! For now I've being using the common features, and it already has working git gutters, and compile_commands.json out-of-the-box, so I'm quite impressed.
@mpdesouza So I did a kernel workaround in .config/helix/languages.toml
:
[[language]]
name = "c"
indent = { tab-width = 8, unit = "\t" }
:-) I mean I rarely use anything else than kernel convention for any C code not a big deal… Still would be nice to have editorconfig eventually for some contribution or something.
For using compile_commands.json
with kernel this the workflow I’ve ended up with:
make ARCH=x86_64 O=./.clangd x86_64_defconfig
make ARCH=x86_64 O=./.clangd menuconfig
make ARCH=x86_64 O=./.clangd -j`nproc`
scripts/clang-tools/gen_compile_commands.py -d ./.clangd
This way it does not confuse e.g. BuildRoot when I point out my BuildRoot with LINUX_OVERRIDER_SRCDIR
to my local kernel tree. Not sure if there is better way to do this but feels like a working workflow in my case.
Nice to see some real innovation with Rust in text editors instead pwning the GPU or similar features. If you editor will not work in terminal, it will end up sucking in the end, as far as I’m consdered :-) Not minding of having also GUI but first things first…
@jarkko interesting, thanks a lot for sharing your setup. I never really used clangd, so maybe now it's the time to do it properly :)
@jarkko Is Helix able to support auto-completion in the kernel? Or at least something like, jumping into the function header or source?
I'm really looking for those features in an editor recently (or I will have to wired something in my Neovim config)
@jarkko That sounds perfect! I'll give it a try today. BTW I also use Catppuccin Mocha, great theme
@jarkko I'm just back to say that I moved to Helix for real. I even deleted my almost 10 years old vim/nvim config files.
Also, clangd worked like a charm, and I don't see myself working on kernel code without Helix anymore (for real, how could I live without LSP for this long??).
Thanks again for sharing your experience with Helix!
@jarkko interesting, I've never really programmed in Rust, but it is good to know that Helix's LSP will help with that :)
@jarkko the multi cursor together with the LSP is amazing. And as you said, git grep works, but always felt kind of clumsy, but with LSP I feel with superpowers :)
Also the Space - k (documentation) is truly great for nós macros and library functions. As I said, Helix was something that I've been waiting for for a long long time :)
@jarkko also, yes, I've stumbled a couple times with the multi cursor without knowing how to get it back to one cursor, it fortunately the Helix keymap docs are truly useful :)