Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix editor for Bevy #232

Open
nixon-voxell opened this issue Sep 28, 2023 · 3 comments
Open

Helix editor for Bevy #232

nixon-voxell opened this issue Sep 28, 2023 · 3 comments
Labels
1- needs research I need to learn more about this topic first, before writing/accepting content for the book C-enhancement New content that isn't covered already S-setup Dev tools / Environment Setup Z-medium medium task that needs moderate time investment

Comments

@nixon-voxell
Copy link

for the editor part, I find Helix to be quite suitable for bevy workflow. Hopefully someone can add something about it. I can help contribute too if needed.

@inodentry
Copy link
Contributor

Yes. I know nothing about it. If you have useful tips/instructions/info, please provide them here.

So far, in the book, I have only created empty/placeholder pages for the most popular editors (like Vim/Emacs) even though I know nothing about them, to hopefully encourage ppl to provide me with some content to add there. Kakoune is the editor I use, so there is a page for it, where I share my setup. Jetbrains and VSCode are there, because other people have submitted some useful stuff for me to put on the page.

If you want a page for Helix to be created, please provide content for it. This is a more niche editor, so I am not going to create a blank page like I did for Vim/Emacs.

@inodentry inodentry added C-enhancement New content that isn't covered already S-setup Dev tools / Environment Setup Z-medium medium task that needs moderate time investment 1- needs research I need to learn more about this topic first, before writing/accepting content for the book labels Oct 2, 2023
@nixon-voxell
Copy link
Author

Okay haha. Actually Helix is a battery included editor. Which means only very little setup is needed haha.

@Jedsek
Copy link

Jedsek commented Nov 5, 2023

@inodentry Oh, helix is ​​an very easy-to-use editor, similar to kakoune and highly inspired by it, written in pure rust, which is 26k stars now.
You could just put the homepage:https://helix-editor.com/, and installation of lsp: rustup component add rust-analyzer.
Then everything is set up, including syntax highlighting/lsp/keybindings

图片
图片

Personally recommended configuration (version: 23.10):

  • ~/.config/helix/config.toml:
### Theme: Compared to onedark, I prefer zed_onedark
theme = "zed_onedark"
# theme = "nord"
# theme = "catppuccin_frappe"
# theme = "catppuccin_macchiato"
# theme = "catppuccin_mocha"

[editor]
# shell = ["nu", "-c"]
line-number = "relative"
scrolloff = 8
idle-timeout = 0
completion-trigger-len = 2
color-modes = true
bufferline = "multiple"
cursorline = true
cursorcolumn = false
auto-save = true
auto-pairs = true
auto-format = true

[editor.lsp]
display-messages = true
display-inlay-hints = true

[editor.soft-wrap]
enable = true

[editor.cursor-shape]
insert = "bar"
normal = "block"

[editor.statusline]
mode.normal = "NORMAL"
mode.insert = "INSERT"
mode.select = "SELECT"
separator = "=>"
left = ["mode", "spacer", "separator", "file-type", "read-only-indicator", "spinner"]
center = ["file-modification-indicator", "file-name", "diagnostics", "workspace-diagnostics"]
right = ["position", "separator", "spacer", "position-percentage", "spacer", "separator", "total-line-numbers"]


[editor.gutters.line-numbers]
min-width = 0

[editor.indent-guides]
render = true
skip-levels = 0

[editor.whitespace.render]
space = "none"
tab = "none"
newline = "none"

[editor.whitespace.characters]
space = "·"
nbsp = ""
tab = ""
newline = ""
tabpad = "·" # Tabs will look like "→···" (depending on tab width)

[editor.smart-tab]
enable = true
  • ~/.config/helix/languages.toml:
[[language]]
name = "rust"
auto-format = true

[language-server.rust-analyzer.config.check]
command = "clippy"

Feel free to use or just ignore what I said above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1- needs research I need to learn more about this topic first, before writing/accepting content for the book C-enhancement New content that isn't covered already S-setup Dev tools / Environment Setup Z-medium medium task that needs moderate time investment
Projects
None yet
Development

No branches or pull requests

3 participants