python lsp fixed

This commit is contained in:
Sean Villars 2024-06-04 15:32:50 -05:00
parent b442836cc2
commit 1772db9d9f
1 changed files with 14 additions and 2 deletions

View File

@ -575,7 +575,19 @@ require('lazy').setup({
local servers = {
-- clangd = {},
-- gopls = {},
pyright = {},
pyright = {
settings = {
pyright = {
disableOrganizeImports = true, -- Using Ruff
},
python = {
analysis = {
ignore = { '*' }, -- Using Ruff
},
},
},
},
ruff_lsp = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
@ -661,7 +673,7 @@ require('lazy').setup({
formatters_by_ft = {
lua = { 'stylua' },
-- Conform can also run multiple formatters sequentially
python = { 'isort', 'black' },
python = { 'black' },
--
-- You can use a sub-list to tell conform to run *until* a formatter
-- is found.