From 9f9ca9e29d9e86c6e836ccdaf49dccacffd6f002 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Sat, 20 Jul 2024 16:28:20 +0200 Subject: [PATCH] feat: really use `ruff` instead of `ruff_lsp` (#4) This commit prevents the following error: /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning language server with cmd: `{ "ruff-lsp" }` failed. The language server is either not installed, missing from PATH, or not executable. and will allow the attachment of the new ruff server when editing Python files. --- kickstart-python.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kickstart-python.lua b/kickstart-python.lua index 402feee..e157379 100644 --- a/kickstart-python.lua +++ b/kickstart-python.lua @@ -90,7 +90,7 @@ local plugins = { -- ruff uses an LSP proxy, therefore it needs to be enabled as if it -- were a LSP. In practice, ruff only provides linter-like diagnostics -- and some code actions, and is not a full LSP yet. - require("lspconfig").ruff_lsp.setup({ + require("lspconfig").ruff.setup({ -- organize imports disabled, since we are already using `isort` for that -- alternative, this can be enabled to make `organize imports` -- available as code action