tree-sitter ssh client config #4690
Replies: 4 comments
-
This may need a bit of work in the function that chooses a language configuration for a given file type, here: helix/helix-core/src/syntax.rs Lines 475 to 491 in ae19aaf This would be useful as well for git config where you can highlight You could set |
Beta Was this translation helpful? Give feedback.
-
hmm, are you aware of any previous discussions on how this part of the config is resolved ? I can't think of a clean way to do this.. A "meh" solution would be to name = "ssh-client-config"
file-types = ["~/.ssh/config"]
name = "git-config"
file-types = ["~/.gitconfig", "${workspace}/.git/config"] With that, we can add an |
Beta Was this translation helpful? Give feedback.
-
There was a bit of discussion here #1426 I think the shell expand might be a good increment. What do others think? |
Beta Was this translation helpful? Give feedback.
-
AFAIK there's now tree-sitter support for ssh-client-config:
|
Beta Was this translation helpful? Give feedback.
-
I am looking into adding the tree-sitter-ssh-client-config but am having trouble, specifically making helix detect the file (it's the
.ssh/config
file), I have no idea what to put infile-types
androot
Beta Was this translation helpful? Give feedback.
All reactions