Harmony
This commit is contained in:
parent
83627dd8c5
commit
72ca58b293
2 changed files with 56 additions and 2 deletions
20
config.toml
20
config.toml
|
|
@ -5,6 +5,9 @@ true-color = true
|
|||
mouse = true
|
||||
color-modes = true
|
||||
rulers = [80, 100]
|
||||
shell = ["bash", "-c"]
|
||||
bufferline = "multiple"
|
||||
end-of-line-diagnostics = "hint"
|
||||
|
||||
[editor.indent-guides]
|
||||
render = true
|
||||
|
|
@ -17,9 +20,24 @@ enable = true
|
|||
[editor.soft-wrap]
|
||||
enable = true
|
||||
|
||||
[editor.inline-diagnostics]
|
||||
cursor-line = "error"
|
||||
other-lines = "warning"
|
||||
|
||||
[editor.whitespace.render]
|
||||
space = "all"
|
||||
space = "none"
|
||||
tab = "all"
|
||||
nbsp = "all"
|
||||
nnbsp = "all"
|
||||
newline = "none"
|
||||
|
||||
[editor.whitespace.characters]
|
||||
space = "·"
|
||||
nbsp = "⍽"
|
||||
nnbsp = "␣"
|
||||
tab = "→"
|
||||
newline = "⏎"
|
||||
tabpad = "·"
|
||||
|
||||
[editor.cursor-shape]
|
||||
insert = "bar"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,45 @@
|
|||
# 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"
|
||||
language-servers = ["pylsp"]
|
||||
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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue