aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-03-29 11:35:07 +0100
committerpml68 <tutorialmester@gmail.com>2024-03-29 11:35:07 +0100
commit738729f073024040fb146b5aff0585f3be972172 (patch)
treef56d18b7a9c040732c4c1f61dfd0f63f863de847
parentdocs: I'm no Windows user(jk). Also, consistency (diff)
downloadnvim-738729f073024040fb146b5aff0585f3be972172.tar.gz
feat: add a few pyright options, enable treesitter highlighting by default
-rwxr-xr-xlua/pml68/configs/settings/pyright.lua9
-rw-r--r--lua/pml68/plugins.lua5
2 files changed, 13 insertions, 1 deletions
diff --git a/lua/pml68/configs/settings/pyright.lua b/lua/pml68/configs/settings/pyright.lua
index da468c7..9589fb6 100755
--- a/lua/pml68/configs/settings/pyright.lua
+++ b/lua/pml68/configs/settings/pyright.lua
@@ -1,3 +1,12 @@
return {
single_file_support = true,
+ settings = {
+ python = {
+ analysis = {
+ autoSearchPaths = true,
+ diagnosticMode = "workspace",
+ useLibraryCodeForTypes = true,
+ },
+ },
+ },
}
diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua
index 2111880..3a34055 100644
--- a/lua/pml68/plugins.lua
+++ b/lua/pml68/plugins.lua
@@ -153,7 +153,10 @@ local plugins = {
"json",
"glsl",
"dart",
- }
+ },
+ highlight = {
+ enable = true
+ }
})
end
},