feat: add json lsp
This commit is contained in:
parent
dd6b31644c
commit
8803a93b0d
2 changed files with 10 additions and 0 deletions
9
lsp/json.lua
Normal file
9
lsp/json.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
---@type vim.lsp.Config
|
||||||
|
return {
|
||||||
|
cmd = { 'vscode-json-language-server', '--stdio' },
|
||||||
|
filetypes = { 'json', 'jsonc' },
|
||||||
|
init_options = {
|
||||||
|
provideFormatter = true,
|
||||||
|
},
|
||||||
|
root_markers = { '.git' },
|
||||||
|
}
|
||||||
|
|
@ -14,6 +14,7 @@ vim.lsp.enable({
|
||||||
"proselint",
|
"proselint",
|
||||||
"python",
|
"python",
|
||||||
"elixir",
|
"elixir",
|
||||||
|
"json",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Set highlight on search
|
-- Set highlight on search
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue