Replies: 4 comments
-
You have to define a Line 616 in 9a65118 |
Beta Was this translation helpful? Give feedback.
-
Is your nvim setup using nvim-treesitter for rust highlighting? I don't see anything in tree-sitter-rust for parsing the shebang so this would require a change upstream there |
Beta Was this translation helpful? Give feedback.
-
No, I don't use nvim-treesitter for highlighting. If you are interested, here is my neovim config file |
Beta Was this translation helpful? Give feedback.
-
This is my current Rust language section: # Rust
[[language]]
name = "rust"
scope = "source.rust"
injection-regex = "rust"
file-types = ["rs"]
roots = ["Cargo.toml", "Cargo.lock"]
auto-format = true
shebangs = ["run-cargo-script"]
language-server = { command = "rust-analyzer" }
formatter = { command = "rustfmt" }
indent = { tab-width = 2, unit = " " } I wonder does it serve a purpose as an auto shebang generator? (Or even is there any) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
one on the left is neovim (the correct one) right one is helix
Reproduction Steps
create a rust file (ending with '.rs') and open it with helix.
add a shebang which is generally represented as:
Helix log
helix.log
Platform
Linux
Terminal Emulator
alacritty 0.13.0-dev (66d742d0)
Helix Version
helix 22.12 (7704965)
Beta Was this translation helpful? Give feedback.
All reactions