Skip to content

Commit

Permalink
fix: really use ruff instead of ruff_lsp (#4) (#7)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jpoliv authored Jul 20, 2024
1 parent 87ca125 commit 65d240f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kickstart-python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d240f

Please sign in to comment.