summaryrefslogtreecommitdiff
path: root/lua/user/lsp/settings
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 11:54:49 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 11:54:49 +0100
commitdeaf6a9824ff47756379c00f430e784f059b581c (patch)
treeaa9b041277f91c8107d912cfd41a1e5bc2ef2c36 /lua/user/lsp/settings
parent54c2bb07828c8e11bfa8e26f5931060ac3402358 (diff)
parentdf55cb522dfd6b3d2cd2b734fce9d8fc1303385a (diff)
Merge branch 'vgg' into 10-comments10-comments
Diffstat (limited to 'lua/user/lsp/settings')
-rw-r--r--lua/user/lsp/settings/jsonls.lua18
-rw-r--r--lua/user/lsp/settings/pyright.lua10
2 files changed, 12 insertions, 16 deletions
diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua
index 1fffa68..be362c9 100644
--- a/lua/user/lsp/settings/jsonls.lua
+++ b/lua/user/lsp/settings/jsonls.lua
@@ -1,9 +1,4 @@
-local default_schemas = nil
-local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls")
-if status_ok then
- default_schemas = jsonls_settings.get_default_schemas()
-end
-
+-- Find more schemas here: https://www.schemastore.org/json/
local schemas = {
{
description = "TypeScript compiler configuration file",
@@ -168,19 +163,10 @@ local schemas = {
},
}
-local function extend(tab1, tab2)
- for _, value in ipairs(tab2) do
- table.insert(tab1, value)
- end
- return tab1
-end
-
-local extended_schemas = extend(schemas, default_schemas)
-
local opts = {
settings = {
json = {
- schemas = extended_schemas,
+ schemas = schemas,
},
},
setup = {
diff --git a/lua/user/lsp/settings/pyright.lua b/lua/user/lsp/settings/pyright.lua
new file mode 100644
index 0000000..6354274
--- /dev/null
+++ b/lua/user/lsp/settings/pyright.lua
@@ -0,0 +1,10 @@
+return {
+ settings = {
+
+ python = {
+ analysis = {
+ typeCheckingMode = "off"
+ }
+ }
+ },
+}