helix/languages.toml
2026-02-12 17:41:40 -08:00

45 lines
1.2 KiB
TOML

# Languages.toml
[language-server.typos]
command = "typos"
# Currently not in the cargo repo
# cargo binstall --git https://github.com/tekumara/typos-lsp typos-lsp
[[language]]
name = "cpp"
formatter = { command = 'clang-format', args = ['--style=file'] }
auto-format = true
file-types = ["cpp", "hpp", "h", "tpp", "tcc"]
# system packages for clang-format/tools
[[language]]
name = "markdown"
language-servers = ["marksman", "typos"]
# none of them are in cargo fully
# https://github.com/helix-editor/helix/wiki/Language-Server-Configurations#markdown
[[language]]
name = "python"
auto-format = true
# pip install -U 'python-lsp-server[all]'
# pip install ruff
[language-server.pylsp.config.pylsp.plugins]
flake8 = {enabled = false}
autopep8 = {enabled = true}
pycodestyle = {enabled = false}
#ruff = { enabled = true, line-length = 100, ignore = ["E501"] }
[language-server.pylsp.config.pylsp.plugins.pylint]
enabled = true
ignore = ["E501"]
[language-server.pylsp.config.pylsp.plugins.ruff]
lineLength = 88
preview = true
#select = ["E4", "E7", "E9", "F"] # Rules to be enabled by ruff
#ignore = ["D210"] # Rules to be ignored by ruff
# CMake, default config
# pip install cmake-language-server 'pygls<2'