From 8803a93b0d24772195877af9c1de7a6acc0f7700 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Tue, 16 Dec 2025 09:57:03 +0100 Subject: [PATCH] feat: add json lsp --- lsp/json.lua | 9 +++++++++ lua/weeheavy/prefs.lua | 1 + 2 files changed, 10 insertions(+) create mode 100644 lsp/json.lua diff --git a/lsp/json.lua b/lsp/json.lua new file mode 100644 index 0000000..89e31b6 --- /dev/null +++ b/lsp/json.lua @@ -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' }, +} diff --git a/lua/weeheavy/prefs.lua b/lua/weeheavy/prefs.lua index cc5dc3e..35e6982 100644 --- a/lua/weeheavy/prefs.lua +++ b/lua/weeheavy/prefs.lua @@ -14,6 +14,7 @@ vim.lsp.enable({ "proselint", "python", "elixir", + "json", }) -- Set highlight on search