summaryrefslogtreecommitdiff
path: root/.config/nvim_pack/lsp/pyright.lua
blob: aece9a71dbd2ccedc581e5806c1f807a8d7a3a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
return {
  cmd = { "pyright-langserver", "--stdio" },
  filetypes = { "python" },
  root_dir = function(filename)
      return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
    end,
  settings = {
    python = {
      analysis = {
        autoSearchPaths = true,
        diagnosticMode = "workspace",
        useLibraryCodeForTypes = true
      }
    }
  }
}