aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp/servers/python.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pi/lsp/servers/python.lua')
-rw-r--r--lua/pi/lsp/servers/python.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/pi/lsp/servers/python.lua b/lua/pi/lsp/servers/python.lua
new file mode 100644
index 0000000..db561aa
--- /dev/null
+++ b/lua/pi/lsp/servers/python.lua
@@ -0,0 +1,16 @@
+local lsp_attach = require "pi.lsp.attach"
+local lsp_flags = require "pi.lsp.flags"
+return function (ops)
+ return vim.tbl_extend("force", {
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ settings = {
+ ["pyright"] = {
+ disableOrganizeImports = false,
+ disableDiagnostics = false,
+ disableLanguageServices = false,
+ typeCheckingMode = "strict",
+ }
+ }
+ }, ops)
+end