Update helix
This commit is contained in:
@@ -4,3 +4,37 @@ file-types = ["yaml", "yml"]
|
||||
language-servers = [ "yaml-language-server" ]
|
||||
auto-format = true
|
||||
formatter = { command = "prettier", args = ["--parser", "yaml"] }
|
||||
|
||||
[language-server.yaml-language-server.config.yaml.schemas]
|
||||
"https://json.schemastore.org/github-workflow.json" = ".github/workflows/*.{yml,yaml}"
|
||||
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-tasks.json" = "roles/{tasks,handlers}/*.{yml,yaml}"
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
language-servers = ["rust-analyzer" ]
|
||||
auto-format = true
|
||||
indent = { tab-width = 4, unit = "t" }
|
||||
[language-server.rust-analyzer]
|
||||
command = "rust-analyzer"
|
||||
[language-server.rust-analyzer.config]
|
||||
check.command = "clippy"
|
||||
|
||||
[[language]]
|
||||
name = "markdown"
|
||||
# https://github.com/executablebooks/mdformat
|
||||
formatter = { command = "mdformat", args = ["-"] }
|
||||
|
||||
[language-server.solargraph]
|
||||
command = "/home/akrasic/.asdf/shims/solargraph"
|
||||
args = ["stdio"]
|
||||
config = { diagnostics = false, formatting = false }
|
||||
|
||||
[language-server.rubocop]
|
||||
command = "/home/akrasic/.asdf/shims/rubocop"
|
||||
args = ["--lsp", "--stderr", "--fail-level", "fatal"]
|
||||
timeout = 3
|
||||
|
||||
[[language]]
|
||||
name = "ruby"
|
||||
language-servers = ["rubocop", { name = "solargraph", except-features = [ "format", "diagnostics" ] }]
|
||||
auto-format = true
|
||||
|
||||
Reference in New Issue
Block a user