From: Samir Benmendil Date: Mon, 27 Jan 2025 22:34:14 +0000 (+0000) Subject: nvim: use ruff for python lsp X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/0756953840bf661bca89873c8666831e25adae2a nvim: use ruff for python lsp ruff_lsp seems to be deprecated. --- diff --git a/nvim/lua/plugins/lang/python.lua b/nvim/lua/plugins/lang/python.lua index 480d567..899bfb3 100644 --- a/nvim/lua/plugins/lang/python.lua +++ b/nvim/lua/plugins/lang/python.lua @@ -13,7 +13,7 @@ return { ---@type lspconfig.options servers = { pyright = {}, - ruff_lsp = { + ruff = { root_dir = function(fname) return require("lspconfig.util").root_pattern("pyproject.toml", "setup.cfg", "ruff.toml")(fname) end,