feat(python): use ruff as lsp

This commit is contained in:
Radu C. Martin 2025-02-24 15:28:30 +01:00
parent d4e27f5dd7
commit d09c54582d
2 changed files with 9 additions and 2 deletions

View file

@ -35,7 +35,14 @@ return {
lua = { 'stylua' }, lua = { 'stylua' },
-- cs = { 'csharpier' }, -- cs = { 'csharpier' },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" }, python = {
-- To fix auto-fixable lint errors.
'ruff_fix',
-- To run the Ruff formatter.
'ruff_format',
-- To organize the imports.
'ruff_organize_imports',
},
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true }, -- javascript = { "prettierd", "prettier", stop_after_first = true },

View file

@ -182,7 +182,7 @@ return {
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
pyright = {}, ruff = {},
rust_analyzer = {}, rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --