Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
feat: add pylsp config
Browse files Browse the repository at this point in the history
  • Loading branch information
gaochang committed May 29, 2023
1 parent 52f5b61 commit 2b4b537
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/modules/configs/completion/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ return function()
{ name = "buffer" },
{ name = "latex_symbols" },
{ name = "copilot" },
-- { name = "codeium" },
{ name = "codeium" },
-- { name = "cmp_tabnine" },
},
experimental = {
Expand Down
11 changes: 11 additions & 0 deletions lua/modules/configs/completion/servers/pylsp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
return {
pylsp = {
configurationSources = { "flake8" },
plugins = {
flake8 = { enabled = true },
mccabe = { enabled = false },
pycodestyle = { enabled = false },
pyflakes = { enabled = false },
},
},
}

0 comments on commit 2b4b537

Please sign in to comment.