diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 12:40:17 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 12:40:17 +0100 |
| commit | 993408daee54ae2a245b97602aaf73e6cdf3d8e1 (patch) | |
| tree | 24da27cdf2999477ebb349ad2fc9e621e1e4985e /lua/user/lsp/settings | |
| parent | 24e1856862e859b60cd5b38fa6befa00f75de89a (diff) | |
| parent | 418fed300187f0cd2dbd8d8fc791dd4aa08b70fe (diff) | |
Merge branch 'vgg' into 22-autocommands22-autocommands
Diffstat (limited to 'lua/user/lsp/settings')
| -rw-r--r-- | lua/user/lsp/settings/jsonls.lua | 33 | ||||
| -rw-r--r-- | lua/user/lsp/settings/pyright.lua | 10 |
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" + } + } + }, +} |
