all repos

init.lua @ 3e99808069933f679b6dd079998f7ef7d5d0c564

my nvim config
3 files changed, 11 insertions(+), 44 deletions(-)
updated lsp provides config
Author: neoteny ss2316544@gmail.com
Committed at: 2021-11-25 10:59:06 +0200
Parent: c179a39
M lua/lsp/providers/jsonls.lua

@@ -1,50 +1,16 @@

return { settings = { schemaDownload = { - enable = true + 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" }, }, }, } - ---[[ -return { - settings = { - json = { - schemas = { - { - description = "TypeScript compiler configuration file", - url = "https://json.schemastore.org/tsconfig.json", - fileMatch = { "tsconfig.json", "tsconfig.*.json" }, - }, - { - description = "Lerna config", - url = "https://json.schemastore.org/lerna.json", - fileMatch = { "lerna.json" }, - }, - { - description = "ESLint config", - url = "https://json.schemastore.org/eslintrc.json", - fileMatch = { ".eslintrc.json", ".eslintrc" }, - }, - { - description = "Prettier config", - url = "https://json.schemastore.org/prettierrc", - fileMatch = { ".prettierrc", ".prettierrc.json", "prettier.config.json" }, - }, - { - description = "golangci-lint configuration file", - fileMatch = { ".golangci.toml", ".golangci.json" }, - url = "https://json.schemastore.org/golangci-lint.json", - }, - { - description = "NPM configuration file", - fileMatch = { "package.json" }, - url = "https://json.schemastore.org/package.json", - }, - }, - }, - }, -}]]
M lua/lsp/providers/sqls.lua

@@ -4,9 +4,7 @@ sqls = {

connections = { { driver = "postgresql", - -- dataSourceName = "host=localhost port=5432 user=postgres password=qwerty123 dbname=postgres sslmode=disable", dataSourceName = "host=0.0.0.0 port=5432 user=postgres password=qwerty123 dbname=postgres sslmode=disable" - -- dataSourceName = 'host=127.0.0.1 port=15432 user=postgres password=mysecretpassword1234 dbname=dvdrental sslmode=disable', }, }, },
M lua/lsp/providers/sumneko_lua.lua

@@ -3,7 +3,10 @@ settings = {

Lua = { diagnostics = { globals = { "vim" } }, workspace = { - library = { [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true, [vim.fn.expand "$VIMRUNTIME/lua"] = true }, + library = { + [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true, + [vim.fn.expand "$VIMRUNTIME/lua"] = true, + }, maxPreload = 100000, preloadFileSize = 10000, },