diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-31 22:20:30 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-31 22:20:30 +0200 |
commit | 7d1e8075b8f156f3f8c300326abf730a1a8f2875 (patch) | |
tree | 4fff845d6cd1b66e267ef76dfad122a174f2c7a4 /.config/nvim/lua/lsp/python-ls.lua | |
parent | 0ce9de258802b9c3259083e6f1ab5739e8e51084 (diff) |
Copying of Luke's dots
Diffstat (limited to '.config/nvim/lua/lsp/python-ls.lua')
-rw-r--r-- | .config/nvim/lua/lsp/python-ls.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.config/nvim/lua/lsp/python-ls.lua b/.config/nvim/lua/lsp/python-ls.lua index 8cc8b22..d4dfac5 100644 --- a/.config/nvim/lua/lsp/python-ls.lua +++ b/.config/nvim/lua/lsp/python-ls.lua @@ -1,3 +1,4 @@ + -- npm i -g pyright require'lspconfig'.pyright.setup { cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"}, @@ -8,7 +9,15 @@ require'lspconfig'.pyright.setup { signs = O.python.diagnostics.signs, underline = O.python.diagnostics.underline, update_in_insert = true - }) + }, + settings = { + python = { + analysis = { + typeCheckingMode = O.python.analysis.type_checking, + autoSearchPaths = O.python.analysis.auto_search_paths, + useLibraryCodeForTypes = O.python.analysis.use_library_code_types + } + } } } |