summaryrefslogtreecommitdiff
path: root/lua/user/lsp/settings
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/lsp/settings')
-rw-r--r--lua/user/lsp/settings/jsonls.lua33
-rw-r--r--lua/user/lsp/settings/pyright.lua10
2 files changed, 24 insertions, 19 deletions
diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua
index 2ee88db..f4e4abb 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,22 +163,10 @@ local schemas = {
},
}
-local function extend(tab1, tab2)
- if tab2 == nil then
- return tab2
- end
- 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 = {
@@ -198,3 +181,15 @@ local opts = {
}
return opts
+
+local function extend(tab1, tab2)
+ if tab2 == nil then
+ return tab2
+ end
+ for _, value in ipairs(tab2) do
+ table.insert(tab1, value)
+ end
+ return tab1
+end
+
+local extended_schemas = extend(schemas, default_schemas)
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"
+ }
+ }
+ },
+}