diff --git a/home/.config/efm-langserver/config.yaml b/home/.config/efm-langserver/config.yaml new file mode 100644 index 0000000..8ba3411 --- /dev/null +++ b/home/.config/efm-langserver/config.yaml @@ -0,0 +1,18 @@ +version: 2 +root-markers: + - .git/ + - .hg/ +lint-debounce: 1s + +tools: + python-ruff: &python-ruff + lint-command: "ruff check --stdin-filename ${INPUT} --output-format concise --quiet -" + lint-stdin: true + lint-formats: + - "%f:%l:%c: %m" + format-command: "ruff format --stdin-filename ${INPUT} --quiet -" + format-stdin: true + +languages: + python: + - <<: *python-ruff diff --git a/home/.vim/coc-settings.json b/home/.vim/coc-settings.json index 5a9b702..7d97ea4 100644 --- a/home/.vim/coc-settings.json +++ b/home/.vim/coc-settings.json @@ -23,6 +23,16 @@ "args": [], "initializationOptions": {} }, + "linting": { + "command": "efm-langserver", + "args": [], + "filetypes": ["python"] + }, + "python": { + "command": "basedpyright-langserver", + "args": ["--stdio"], + "filetypes": ["python"] + }, "haskell": { "command": "haskell-language-server-wrapper", "args": ["--lsp"], @@ -35,8 +45,5 @@ "elixir.pathToElixirLS": "/usr/local/bin/elixir-ls", - "python.pythonPath": "python3", - "python.formatting.provider": "ruff", - "rust.clippy_preference": "on" }