vim.pack.add({ { src = "https://github.com/neovim/nvim-lspconfig", version = 'master', }, }) vim.lsp.config['pyright'] = { cmd = { "pyright-langserver", "--stdio" }, filetypes = { "python" }, settings = { python = { analysis = { autoSearchPaths = true, diagnosticMode = "workspace", useLibraryCodeForTypes = true } } } } vim.lsp.enable('pyright')