diff options
Diffstat (limited to 'lua/pi/lsp/servers/python.lua')
| -rw-r--r-- | lua/pi/lsp/servers/python.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lua/pi/lsp/servers/python.lua b/lua/pi/lsp/servers/python.lua index db561aa..3e79ffd 100644 --- a/lua/pi/lsp/servers/python.lua +++ b/lua/pi/lsp/servers/python.lua @@ -1,16 +1,19 @@ local lsp_attach = require "pi.lsp.attach" local lsp_flags = require "pi.lsp.flags" -return function (ops) +return function(ops) + local capabilities = require("blink.cmp").get_lsp_capabilities(vim.lsp.protocol.make_client_capabilities()) + return vim.tbl_extend("force", { on_attach = lsp_attach, flags = lsp_flags, + capabilities = capabilities, settings = { ["pyright"] = { disableOrganizeImports = false, disableDiagnostics = false, disableLanguageServices = false, typeCheckingMode = "strict", - } - } + }, + }, }, ops) end |