blob: 3e79ffd34ce673dd55a731ec2868c2592202fcfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
local lsp_attach = require "pi.lsp.attach"
local lsp_flags = require "pi.lsp.flags"
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
|