return { -- Command to start the language server -- This should match the executable name installed by Mason or system package manager cmd = { "pyright" }, -- File types that should automatically attach this LSP server filetypes = { "python" }, -- Root directory markers - LSP will search for these files/directories -- to determine the project root. Nested arrays indicate equal priority. -- The first match wins within each priority level. root_markers = { { "pyprojtect.toml", "setup.py", "setup.cfg", "requirements.txt", "pyrightconfig.json" }, -- High priority { ".git", ".hg" }, -- Fallback markers }, -- Server-specific settings (varies by language server) -- Check your language server's documentation for available options settings = { python = { analysis = { autoSearchPaths = true, useLibraryCodeForTypes = true, }, }, }, -- Optional: Additional capabilities (usually handled globally) -- capabilities = require("blink.cmp").get_lsp_capabilities(), -- Optional: Custom initialization options -- init_options = { -- hostInfo = "neovim", -- }, -- Optional: Custom handlers for LSP methods -- handlers = { -- ["textDocument/hover"] = vim.lsp.with( -- vim.lsp.handlers.hover, -- { border = "rounded" } -- ), -- }, }