diff --git a/lua/lsp/config/jedi_language_server.lua b/lua/lsp/config/jedi_language_server.lua index 6dece72..6422f8f 100644 --- a/lua/lsp/config/jedi_language_server.lua +++ b/lua/lsp/config/jedi_language_server.lua @@ -97,32 +97,6 @@ return { }, }, }, - { - cmd = { - "pylint", - "--disable=all", - "--enable=E1101", - "--output-format=json", - "--from-stdin", - "%file%", - }, - stdin = true, - stdout = true, - json = { - lnum = "line", - end_lnum = "endLine", - col = "column", - end_col = "endColumn", - code = "message-id", - message = "message", - severity = "type", - }, - zero_idx_col = true, - severity_map = { - error = ERROR, - }, - source = "pylint", - }, }, keymaps = { { diff --git a/lua/lsp/config/pyright.lua b/lua/lsp/config/pyright.lua new file mode 100644 index 0000000..0d1f7dc --- /dev/null +++ b/lua/lsp/config/pyright.lua @@ -0,0 +1,26 @@ +---@type ServerConfig +return { + enable = true, + mason = { "pyright" }, + lspconfig = { + filetypes = { + "python", + }, + cmd = { "pyright-langserver", "--stdio" }, + single_file_support = true, + -- https://microsoft.github.io/pyright/#/settings + settings = { + python = { + analysis = { + autoSearchPaths = true, + diagnosticMode = "openFilesOnly", + useLibraryCodeForTypes = true, + typeCheckingMode = "strict", + }, + }, + pyright = { + disableLanguageServices = true, + }, + }, + }, +}