Updates blink and jsonls
This commit is contained in:
parent
89eab258b0
commit
aaa7c87fa7
2 changed files with 9 additions and 11 deletions
|
|
@ -1,17 +1,15 @@
|
||||||
return {
|
return {
|
||||||
cmd = { 'vscode-json-language-server', '--stdio' },
|
cmd = { "vscode-json-language-server", "--stdio" },
|
||||||
filetypes = { 'json', 'jsonc' },
|
filetypes = { "json", "jsonc" },
|
||||||
init_options = {
|
init_options = {
|
||||||
provideFormatter = true,
|
provideFormatter = true,
|
||||||
},
|
},
|
||||||
root_dir = function(fname)
|
root_markers = { ".git" },
|
||||||
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
|
|
||||||
end,
|
|
||||||
single_file_support = true,
|
single_file_support = true,
|
||||||
settings = {
|
settings = {
|
||||||
json = {
|
json = {
|
||||||
schemas = require("schemastore").json.schemas(),
|
schemas = require("schemastore").json.schemas(),
|
||||||
validate = { enable = true }
|
validate = { enable = true },
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@ return {
|
||||||
selection = {
|
selection = {
|
||||||
preselect = false,
|
preselect = false,
|
||||||
auto_insert = true,
|
auto_insert = true,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
signature = {
|
signature = {
|
||||||
enabled = true
|
enabled = true,
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
default = { "lsp", "path", "snippets", "buffer" },
|
default = { "lsp", "path", "snippets", "buffer" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue