From 2fb5d1e9bf29f0a7c42936deb0c9479aef813b34 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 13 Sep 2023 02:42:02 +0300 Subject: nvim: working ruff + black with pylsp --- .config/nvim/lua/plugins/lsp.lua | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 6ddab1c..4c56acf 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -104,23 +104,16 @@ return { settings = { pylsp = { plugins = { - flake8 = { - enabled = true, - maxLineLength = 88, -- black's line length - }, - -- disable plugins overlapping with flake8 + -- we had to disable this here for ruff + black to work pycodestyle = { enabled = false, }, - mccabe = { - enabled = false, - }, - pyflakes = { - enabled = false, + ruff = { + enabled = true, + extendSelect = { "I" }, }, - -- use black as the formatter - autopep8 = { - enabled = false, + black = { + enabled = true, }, }, }, -- cgit v1.2.3-70-g09d2