forked from dineshsalunke/nvim-config
refactor: add lspconfig for json
This commit is contained in:
parent
09dd7d7ec9
commit
6422e8f548
@ -14,6 +14,7 @@ return {
|
||||
{ "j-hui/fidget.nvim", opts = {} },
|
||||
-- Allows extra capabilities provided by nvim-cmp
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"b0o/schemastore.nvim",
|
||||
},
|
||||
config = function()
|
||||
local util = require("lspconfig/util")
|
||||
@ -204,6 +205,14 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
jsonls = {
|
||||
settings = {
|
||||
json = {
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
validate = { enable = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- Ensure the servers and tools above are installed
|
||||
@ -225,6 +234,7 @@ return {
|
||||
"prettierd",
|
||||
"eslint_d",
|
||||
"gopls",
|
||||
"jsonls",
|
||||
})
|
||||
require("mason-tool-installer").setup({ ensure_installed = ensure_installed })
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user