summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorYigit Sever2023-09-13 02:42:02 +0300
committerYigit Sever2023-09-13 02:42:02 +0300
commit2fb5d1e9bf29f0a7c42936deb0c9479aef813b34 (patch)
treeb9515f1f0cb3064726d8ab870ee37bad8a6d4e10 /.config/nvim/lua
parent532d8b4f12207e419b5e63c0c4a30027caa223c0 (diff)
downloaddotfiles-2fb5d1e9bf29f0a7c42936deb0c9479aef813b34.tar.gz
dotfiles-2fb5d1e9bf29f0a7c42936deb0c9479aef813b34.tar.bz2
dotfiles-2fb5d1e9bf29f0a7c42936deb0c9479aef813b34.zip
nvim: working ruff + black with pylsp
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/plugins/lsp.lua19
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 },