From ab5fcc3fa026eeffd2a0b5e957e809b252c78202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Thu, 22 Aug 2024 16:49:43 +0200 Subject: [PATCH] [nvim python] move to ruff + basedpyright --- .config/nvim/lua/plugins/lsp.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index ab4c445..eb5785f 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -84,7 +84,8 @@ return { ensure_installed = { "lua_ls", "gopls", - "pylsp", + "ruff", + "basedpyright", "tsserver", }, handlers = { @@ -105,16 +106,15 @@ return { nvim_lsp.gopls.setup({}) nvim_lsp.dartls.setup({}) nvim_lsp.tsserver.setup({}) - nvim_lsp.pylsp.setup({ + nvim_lsp.ruff.setup({}) + nvim_lsp.basedpyright.setup({ settings = { - pylsp = { - plugins = { - black = { enabled = true }, - isort = { enabled = true, profile = "black" }, - }, + basedpyright = { + typeCheckingMode = "standard", }, }, - }) + } + ) lsp.setup() end,