X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e1b33d1f3aa562c5c33e0bb8e4e42fb01120548a..33112f3a6e08933f311b76e370fb1b236d60022b:/nvim/lua/plugins/lang/python.lua diff --git a/nvim/lua/plugins/lang/python.lua b/nvim/lua/plugins/lang/python.lua index 537d032..899bfb3 100644 --- a/nvim/lua/plugins/lang/python.lua +++ b/nvim/lua/plugins/lang/python.lua @@ -13,7 +13,10 @@ 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, keys = { { "co", @@ -30,6 +33,20 @@ return { }, }, }, + pylsp = { + settings = { + pylsp = { + plugins = { + autopep8 = { enabled = false }, + flake8 = { enabled = false }, + mccabe = { enabled = false }, + pycodestyle = { enabled = false }, + pydocstyle = { enabled = false }, + pyflakes = { enabled = false }, -- covered by flake8 + } + } + } + } }, setup = { ruff_lsp = function() @@ -50,7 +67,8 @@ return { }, opts = { adapters = { - ["neotest-python"] = { }, + ["neotest-python"] = { + dap = { justMyCode = false }}, }, }, },