all repos

init.lua @ 75677a939397300a832213f53b3c44b39133152b

my nvim config
3 files changed, 0 insertions(+), 47 deletions(-)
clean up lsp configs
Author: neoteny ss2316544@gmail.com
Committed at: 2022-01-22 21:20:16 +0200
Parent: 39748a2
D

@@ -1,16 +0,0 @@

-return { - settings = { - schemaDownload = { - enable = true, - }, - schemas = { - { fileMatch = { "package.json" }, url = "https://json.schemastore.org/package.json" }, - { url = "https://json.schemastore.org/tsconfig.json", fileMatch = { "tsconfig.json", "tsconfig.*.json" } }, - { url = "https://json.schemastore.org/lerna.json", fileMatch = { "lerna.json" } }, - { url = "https://json.schemastore.org/eslintrc.json", fileMatch = { ".eslintrc.json", ".eslintrc" } }, - { url = "https://json.schemastore.org/prettierrc", fileMatch = { ".prettierrc", ".prettierrc.json", "prettier.config.json" } }, - { fileMatch = { ".golangci.toml", ".golangci.json" }, url = "https://json.schemastore.org/golangci-lint.json" }, - { fileMatch = { "package.json" }, url = "https://json.schemastore.org/package.json" }, - }, - }, -}
D

@@ -1,12 +0,0 @@

-return { - settings = { - sqls = { - connections = { - { - driver = "postgresql", - dataSourceName = "host=0.0.0.0 port=5432 user=postgres password=qwerty123 dbname=postgres sslmode=disable", - }, - }, - }, - }, -}
D

@@ -1,19 +0,0 @@

-return { - setup = { - handlers = { - ["textDocument/publishDiagnostics"] = function(_, _, p, id, _, cfg) - if p.diagnostics ~= nil then - local i = 1 - while i <= #p.diagnostics do - if p.diagnostics[i].code == 80001 then - table.remove(p.diagnostics, i) - else - i = i + 1 - end - end - end - vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, id, _, cfg) - end, - }, - }, -}