feat(nvim): improve jsonls handling

This commit is contained in:
Price Hiller 2022-09-12 19:52:21 -05:00
parent 67cdef6a4b
commit bf6c03f591
3 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,4 @@
local opt_local = vim.opt_local
opt_local.tabstop = 2
opt_local.shiftwidth = 2

View File

@ -266,12 +266,18 @@ lspconfig.omnisharp.setup({
on_attach = on_attach, on_attach = on_attach,
}) })
lspconfig.bashls.setup({}) lspconfig.jsonls.setup({
settings = {
schemas = require("schemastore").json.schemas(),
validate = { enable = true },
},
})
-- NOTE: GENERIC LSP SERVERS -- NOTE: GENERIC LSP SERVERS
for _, server in ipairs({ for _, server in ipairs({
"clangd", "clangd",
"cmake", "cmake",
"bashls",
"dockerls", "dockerls",
"eslint", "eslint",
"html", "html",
@ -284,7 +290,6 @@ for _, server in ipairs({
"vimls", "vimls",
"vuels", "vuels",
"tsserver", "tsserver",
"jsonls",
"pyright", "pyright",
"rnix", "rnix",
"marksman", "marksman",

View File

@ -316,6 +316,7 @@ return packer.startup({
"williamboman/mason.nvim", "williamboman/mason.nvim",
"simrat39/rust-tools.nvim", "simrat39/rust-tools.nvim",
"Hoffs/omnisharp-extended-lsp.nvim", "Hoffs/omnisharp-extended-lsp.nvim",
"b0o/schemastore.nvim",
}, },
config = function() config = function()
require("mason").setup({}) require("mason").setup({})