Adding json schema support

This commit is contained in:
Zoe Roux
2022-03-10 23:52:57 +01:00
parent 7198b989bb
commit f6f162ff0f
3 changed files with 8 additions and 4 deletions
@@ -15,6 +15,13 @@ local server_settings = {
["OMNISHARP_RoslynExtensionsOptions:enableDecompilationSupport"] = true,
},
},
jsonls = {
settings = {
json = {
schemas = require('schemastore').json.schemas(),
},
},
},
}
lsp_installer.settings({
+1
View File
@@ -66,6 +66,7 @@ return packer.startup(function(use)
'williamboman/nvim-lsp-installer',
}
use "Hoffs/omnisharp-extended-lsp.nvim"
use "b0o/schemastore.nvim"
use {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
@@ -19,13 +19,9 @@ telescope.setup({
path_display = { "truncate" },
mappings = {
i = {
["<CR>"] = actions.file_edit,
["<A-k>"] = actions.move_selection_previous,
["<A-j>"] = actions.move_selection_next,
},
n = {
["<CR>"] = actions.file_edit,
},
},
},
extensions = {