summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/extra
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-05 08:46:35 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-05 08:46:35 +0200
commit77cdf208765ad351e48724ed5ad57e55703eca61 (patch)
tree7f19757b255ab66895d9240a5aca77a35cef8aac /.config/nvim/lua/extra
parent4fd170aa9d55b7bcd1f0a9445c9e136b560e3220 (diff)
Add major update to LSP from lunarvim
Diffstat (limited to '.config/nvim/lua/extra')
-rw-r--r--.config/nvim/lua/extra/json_schemas.lua194
1 files changed, 97 insertions, 97 deletions
diff --git a/.config/nvim/lua/extra/json_schemas.lua b/.config/nvim/lua/extra/json_schemas.lua
index 926de45..d48d932 100644
--- a/.config/nvim/lua/extra/json_schemas.lua
+++ b/.config/nvim/lua/extra/json_schemas.lua
@@ -1,102 +1,102 @@
--- https://www.schemastore.org/json/
-local M = {}
+-- -- https://www.schemastore.org/json/
+-- local M = {}
-M.setup = function()
- local schemas = {
- {
- description = "Package JSON file",
- fileMatch = { "package.json" },
- url = "https://json.schemastore.org/package.json",
- },
- {
- description = "TypeScript compiler configuration file",
- fileMatch = { "tsconfig.json", "tsconfig.*.json" },
- url = "http://json.schemastore.org/tsconfig",
- },
- {
- description = "Lerna config",
- fileMatch = { "lerna.json" },
- url = "http://json.schemastore.org/lerna",
- },
- {
- description = "Babel configuration",
- fileMatch = { ".babelrc.json", ".babelrc", "babel.config.json" },
- url = "http://json.schemastore.org/lerna",
- },
- {
- description = "ESLint config",
- fileMatch = { ".eslintrc.json", ".eslintrc" },
- url = "http://json.schemastore.org/eslintrc",
- },
- {
- description = "Bucklescript config",
- fileMatch = { "bsconfig.json" },
- url = "https://bucklescript.github.io/bucklescript/docson/build-schema.json",
- },
- {
- description = "Prettier config",
- fileMatch = { ".prettierrc", ".prettierrc.json", "prettier.config.json" },
- url = "http://json.schemastore.org/prettierrc",
- },
- {
- description = "Vercel Now config",
- fileMatch = { "now.json" },
- url = "http://json.schemastore.org/now",
- },
- {
- description = "Stylelint config",
- fileMatch = { ".stylelintrc", ".stylelintrc.json", "stylelint.config.json" },
- url = "http://json.schemastore.org/stylelintrc",
- },
- {
- name = "Helm Chart.yaml",
- description = "The Chart.lock file locks dependencies from Chart.yaml",
- fileMatch = { "Chart.lock" },
- url = "https://json.schemastore.org/chart-lock.json",
- },
- {
- name = "CircleCI config.yml",
- description = "Schema for CircleCI 2.0 config files",
- fileMatch = { ".circleci/config.yml" },
- url = "https://json.schemastore.org/circleciconfig.json",
- },
- {
- name = "yamllint",
- description = "yamllint uses a set of rules to check source files for problems",
- fileMatch = { "**/.yamllint", "**/.yamllint.yaml", "**/.yamllint.yml" },
- url = "https://json.schemastore.org/yamllint.json",
- },
- {
- name = "Hadolint",
- description = "A smarter Dockerfile linter that helps you build best practice Docker images.",
- fileMatch = { ".hadolint.yaml", "hadolint.yaml", ".hadolint.yml", "hadolint.yml" },
- url = "https://raw.githubusercontent.com/hadolint/hadolint/master/contrib/hadolint.json",
- },
- {
- name = "kustomization.yaml",
- description = "Kubernetes native configuration management",
- fileMatch = { "kustomization.yaml", "kustomization.yml" },
- url = "https://json.schemastore.org/kustomization.json",
- },
- }
+-- M.setup = function()
+-- local schemas = {
+-- {
+-- description = "Package JSON file",
+-- fileMatch = { "package.json" },
+-- url = "https://json.schemastore.org/package.json",
+-- },
+-- {
+-- description = "TypeScript compiler configuration file",
+-- fileMatch = { "tsconfig.json", "tsconfig.*.json" },
+-- url = "http://json.schemastore.org/tsconfig",
+-- },
+-- {
+-- description = "Lerna config",
+-- fileMatch = { "lerna.json" },
+-- url = "http://json.schemastore.org/lerna",
+-- },
+-- {
+-- description = "Babel configuration",
+-- fileMatch = { ".babelrc.json", ".babelrc", "babel.config.json" },
+-- url = "http://json.schemastore.org/lerna",
+-- },
+-- {
+-- description = "ESLint config",
+-- fileMatch = { ".eslintrc.json", ".eslintrc" },
+-- url = "http://json.schemastore.org/eslintrc",
+-- },
+-- {
+-- description = "Bucklescript config",
+-- fileMatch = { "bsconfig.json" },
+-- url = "https://bucklescript.github.io/bucklescript/docson/build-schema.json",
+-- },
+-- {
+-- description = "Prettier config",
+-- fileMatch = { ".prettierrc", ".prettierrc.json", "prettier.config.json" },
+-- url = "http://json.schemastore.org/prettierrc",
+-- },
+-- {
+-- description = "Vercel Now config",
+-- fileMatch = { "now.json" },
+-- url = "http://json.schemastore.org/now",
+-- },
+-- {
+-- description = "Stylelint config",
+-- fileMatch = { ".stylelintrc", ".stylelintrc.json", "stylelint.config.json" },
+-- url = "http://json.schemastore.org/stylelintrc",
+-- },
+-- {
+-- name = "Helm Chart.yaml",
+-- description = "The Chart.lock file locks dependencies from Chart.yaml",
+-- fileMatch = { "Chart.lock" },
+-- url = "https://json.schemastore.org/chart-lock.json",
+-- },
+-- {
+-- name = "CircleCI config.yml",
+-- description = "Schema for CircleCI 2.0 config files",
+-- fileMatch = { ".circleci/config.yml" },
+-- url = "https://json.schemastore.org/circleciconfig.json",
+-- },
+-- {
+-- name = "yamllint",
+-- description = "yamllint uses a set of rules to check source files for problems",
+-- fileMatch = { "**/.yamllint", "**/.yamllint.yaml", "**/.yamllint.yml" },
+-- url = "https://json.schemastore.org/yamllint.json",
+-- },
+-- {
+-- name = "Hadolint",
+-- description = "A smarter Dockerfile linter that helps you build best practice Docker images.",
+-- fileMatch = { ".hadolint.yaml", "hadolint.yaml", ".hadolint.yml", "hadolint.yml" },
+-- url = "https://raw.githubusercontent.com/hadolint/hadolint/master/contrib/hadolint.json",
+-- },
+-- {
+-- name = "kustomization.yaml",
+-- description = "Kubernetes native configuration management",
+-- fileMatch = { "kustomization.yaml", "kustomization.yml" },
+-- url = "https://json.schemastore.org/kustomization.json",
+-- },
+-- }
- local function extend(tab1, tab2)
- for _, value in ipairs(tab2) do
- table.insert(tab1, value)
- end
- return tab1
- end
+-- local function extend(tab1, tab2)
+-- for _, value in ipairs(tab2) do
+-- table.insert(tab1, value)
+-- end
+-- return tab1
+-- end
- local extended_schemas = extend(
- schemas,
- require("nlspsettings.jsonls").get_default_schemas()
- )
+-- local extended_schemas = extend(
+-- schemas,
+-- require("nlspsettings.jsonls").get_default_schemas()
+-- )
- options.lang.json.lsp.setup.settings = {
- json = {
- schemas = extended_schemas,
- },
- }
-end
+-- options.lang.json.lsp.setup.settings = {
+-- json = {
+-- schemas = extended_schemas,
+-- },
+-- }
+-- end
-return M
+-- return M