feat(python): use ruff as lsp
This commit is contained in:
parent
d4e27f5dd7
commit
d09c54582d
2 changed files with 9 additions and 2 deletions
|
@ -35,7 +35,14 @@ return {
|
|||
lua = { 'stylua' },
|
||||
-- cs = { 'csharpier' },
|
||||
-- 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
|
||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
|
|
|
@ -182,7 +182,7 @@ return {
|
|||
local servers = {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
pyright = {},
|
||||
ruff = {},
|
||||
rust_analyzer = {},
|
||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue