121 lines
2.8 KiB
TOML
121 lines
2.8 KiB
TOML
[[language]]
|
|
name = "lua"
|
|
auto-format = false
|
|
|
|
[[language]]
|
|
name = "tsx"
|
|
auto-format = true
|
|
|
|
[[language]]
|
|
name = "markdown"
|
|
[language.auto-pairs]
|
|
'_' = '_'
|
|
'(' = ')'
|
|
'{' = '}'
|
|
'[' = ']'
|
|
'"' = '"'
|
|
"'" = "'"
|
|
# '`' = '`'
|
|
# '<' = '>'
|
|
[language-server.markdown-oxide.config]
|
|
unresolved_diagnostics = true
|
|
include_md_extension_md_link = true # [File](file.md) or [File](file)
|
|
|
|
[[language]]
|
|
name = "sql"
|
|
auto-format = false
|
|
formatter = { command = "sqlformat", args = [
|
|
"--keywords",
|
|
"upper", # "upper", "lower", "capitalize"
|
|
"--identifiers",
|
|
"upper",
|
|
# "--reindent",
|
|
"--indent_width",
|
|
"2",
|
|
# "--indent_columns",
|
|
# "--compact", "True",
|
|
"-",
|
|
] }
|
|
|
|
|
|
[[language]]
|
|
name = "toml"
|
|
auto-format = true
|
|
|
|
# TODO: still aligns
|
|
[language-server.taplo.config]
|
|
alignComments = false
|
|
align_comments = false
|
|
|
|
|
|
# [language-server.yaml-language-server.config.yaml]
|
|
# format = { enable = true }
|
|
# validate = true
|
|
# schemaStore = true
|
|
# [language-server.yaml-language-server.config.yaml.schemas]
|
|
# "" = "openapi.{yml,yaml}"
|
|
|
|
# [language-server.nil]
|
|
# formatting.command = "alejandra"
|
|
|
|
|
|
[[language]]
|
|
name = "typst"
|
|
auto-format = true
|
|
language-servers = ["tinymist"]
|
|
|
|
[language-server.tinymist]
|
|
command = "tinymist"
|
|
|
|
[language-server.tinymist.config]
|
|
formatterPrintWidth = 100 # can't stand 120
|
|
formatterMode = "typstyle" # or typstfmt
|
|
exportPdf = "never" # onSave, default: never
|
|
|
|
|
|
[[language]]
|
|
name = "rust"
|
|
|
|
[language.debugger]
|
|
name = "lldb-dap"
|
|
transport = "stdio"
|
|
command = "lldb-dap"
|
|
|
|
[[language.debugger.templates]]
|
|
name = "binary"
|
|
request = "launch"
|
|
completion = [{ name = "binary", completion = "filename" }]
|
|
args = { program = "{0}", initCommands = [
|
|
"command script import /usr/local/etc/lldb_vscode_rustc_primer.py",
|
|
] }
|
|
|
|
[language-server.rust-analyzer.config]
|
|
checkOnSave = true
|
|
procMacro.enable = true
|
|
cargo.features = "all"
|
|
|
|
# [language-server.rust-analyzer.config.cargo]
|
|
# loadOutDirsFromCheck = true
|
|
# runBuildScripts = true
|
|
|
|
[language-server.rust-analyzer.config.check]
|
|
features = "all"
|
|
command = "clippy"
|
|
extraArgs = [
|
|
"--",
|
|
"--no-deps", # run Clippy only on the given crate
|
|
# Deny, Warn, Allow, Forbid
|
|
"-Wclippy::correctness", # code that is outright wrong or useless
|
|
"-Wclippy::complexity", # code that does something simple but in a complex way
|
|
"-Wclippy::suspicious", # code that is most likely wrong or useless
|
|
"-Wclippy::style", # code that should be written in a more idiomatic way
|
|
"-Wclippy::perf", # code that can be written to run faster
|
|
"-Wclippy::pedantic", # lints which are rather strict or have occasional false positives
|
|
"-Wclippy::nursery", # new lints that are still under development
|
|
"-Aclippy::cargo", # lints for the cargo manifest
|
|
# Use in production
|
|
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
|
# Other
|
|
"-Aclippy::must_use_candidate", # must_use is rather annoing
|
|
]
|