feat(nvim): improve jsonls handling
This commit is contained in:
parent
67cdef6a4b
commit
bf6c03f591
@ -0,0 +1,4 @@
|
||||
local opt_local = vim.opt_local
|
||||
|
||||
opt_local.tabstop = 2
|
||||
opt_local.shiftwidth = 2
|
@ -266,12 +266,18 @@ lspconfig.omnisharp.setup({
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
lspconfig.bashls.setup({})
|
||||
lspconfig.jsonls.setup({
|
||||
settings = {
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
validate = { enable = true },
|
||||
},
|
||||
})
|
||||
|
||||
-- NOTE: GENERIC LSP SERVERS
|
||||
for _, server in ipairs({
|
||||
"clangd",
|
||||
"cmake",
|
||||
"bashls",
|
||||
"dockerls",
|
||||
"eslint",
|
||||
"html",
|
||||
@ -284,7 +290,6 @@ for _, server in ipairs({
|
||||
"vimls",
|
||||
"vuels",
|
||||
"tsserver",
|
||||
"jsonls",
|
||||
"pyright",
|
||||
"rnix",
|
||||
"marksman",
|
||||
|
@ -316,6 +316,7 @@ return packer.startup({
|
||||
"williamboman/mason.nvim",
|
||||
"simrat39/rust-tools.nvim",
|
||||
"Hoffs/omnisharp-extended-lsp.nvim",
|
||||
"b0o/schemastore.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("mason").setup({})
|
||||
|
Loading…
Reference in New Issue
Block a user