diff options
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 19 |
1 files changed, 6 insertions, 13 deletions
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 { | |||
| 104 | settings = { | 104 | settings = { |
| 105 | pylsp = { | 105 | pylsp = { |
| 106 | plugins = { | 106 | plugins = { |
| 107 | flake8 = { | 107 | -- we had to disable this here for ruff + black to work |
| 108 | enabled = true, | ||
| 109 | maxLineLength = 88, -- black's line length | ||
| 110 | }, | ||
| 111 | -- disable plugins overlapping with flake8 | ||
| 112 | pycodestyle = { | 108 | pycodestyle = { |
| 113 | enabled = false, | 109 | enabled = false, |
| 114 | }, | 110 | }, |
| 115 | mccabe = { | 111 | ruff = { |
| 116 | enabled = false, | 112 | enabled = true, |
| 117 | }, | 113 | extendSelect = { "I" }, |
| 118 | pyflakes = { | ||
| 119 | enabled = false, | ||
| 120 | }, | 114 | }, |
| 121 | -- use black as the formatter | 115 | black = { |
| 122 | autopep8 = { | 116 | enabled = true, |
| 123 | enabled = false, | ||
| 124 | }, | 117 | }, |
| 125 | }, | 118 | }, |
| 126 | }, | 119 | }, |
