feat: add json lsp

This commit is contained in:
Oliver Ladner 2025-12-16 09:57:03 +01:00
commit 8803a93b0d
2 changed files with 10 additions and 0 deletions

9
lsp/json.lua Normal file
View 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' },
}

View file

@ -14,6 +14,7 @@ vim.lsp.enable({
"proselint",
"python",
"elixir",
"json",
})
-- Set highlight on search