summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/python-ls.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/python-ls.lua')
-rw-r--r--.config/nvim/lua/lsp/python-ls.lua11
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
+ }
+ }
}
}