summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorFrancisco Suárez <[email protected]>2021-05-03 15:37:12 -0500
committerGitHub <[email protected]>2021-05-03 16:37:12 -0400
commit3adcfdc0346546c102c370aa12549fafe2be5cb8 (patch)
treecddeb2eae47ec933149b416b61b72bb0a103707c /lua
parent2ca5944956fe4d7f6a3855575402cc8f303b72a0 (diff)
✨ Python analysis options (pyright) (#352)
Diffstat (limited to 'lua')
-rw-r--r--lua/lsp/python-ls.lua10
-rw-r--r--lua/lv-globals.lua3
2 files changed, 11 insertions, 2 deletions
diff --git a/lua/lsp/python-ls.lua b/lua/lsp/python-ls.lua
index 8cc8b222..f9af265e 100644
--- a/lua/lsp/python-ls.lua
+++ b/lua/lsp/python-ls.lua
@@ -8,7 +8,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
+ }
+ }
}
}
diff --git a/lua/lv-globals.lua b/lua/lv-globals.lua
index dedf397b..b968589a 100644
--- a/lua/lv-globals.lua
+++ b/lua/lv-globals.lua
@@ -24,7 +24,8 @@ O = {
formatter = '',
autoformat = false,
isort = false,
- diagnostics = {virtual_text = true, signs = true, underline = true}
+ diagnostics = {virtual_text = true, signs = true, underline = true},
+ analysis = {type_checking = "basic", auto_search_paths = true, use_library_code_types = true}
},
dart = {sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot'},
lua = {