-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
nginx config syntax highlight support? #8029
Comments
I have the same problem. For a temporary fix, you can try adding this config to # https://docs.helix-editor.com/languages.html
[[language]]
name = "ini"
file-types = [
"conf",
# from https://github.com/helix-editor/helix/blob/master/languages.toml
"ini", "service", "automount", "device", "mount", "path", "service", "slice", "socket", "swap", "target", "timer", "container", "volume", "kube", "network",
]
[[language]]
name = "bash"
file-types = [
"nginx.conf",
# from https://github.com/helix-editor/helix/blob/master/languages.toml
"sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", "zshenv", ".zlogin", "zlogin", ".zlogout", "zlogout", ".zprofile", "zprofile", ".zshrc", "zshrc", ".zimrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild", "bazelrc", ".bash_aliases", "Renviron", ".Renviron",
] (The file types can't be extended, related issue: #6896) The first section will use This is not ideal but it does the job for me. |
@mahor1221 thanks a lot for the tip. It does the job. I am about to give up |
One more question about |
Unfortunately it seems that that's not possible currently. There is a helix/helix-core/src/syntax.rs Lines 160 to 167 in c9694f6
Personally, I'm using keybindings for commands like |
I know a little Rust, so if nobody fixed this issue, I would be happy to work on it myself but I probably can't do it in the upcoming weeks or months. |
@mahor1221 thanks a lot for your help. Hopefully, helix team can put more attention on these kind of issues. I think they are very easy to be fixed and improved. It shouldn't take too much time. I don't want to switch between editors all the time. :) |
#8006 might address this. |
Can be closed now that #12309 (comment) is merged |
Hi, I need to edit nginx config file a lot. Is that possible to enable nginx config syntax highlight?
Thanks a lot.
Edited:
I try to replace
vim
withhelix
, but I find out helix is missing many file type support. It does not support many linux config file types, such asnginx
,systemd
etc..The text was updated successfully, but these errors were encountered: