From 4a5d74b19f003fac45661a21d8044d342bc1e650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Andr=C3=A9=20Damas?= Date: Sat, 29 Mar 2025 15:18:26 +0000 Subject: [PATCH] fix jsonls lsp config --- lsp/jsonls.lua | 1 + lua/plugins/lsp.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lsp/jsonls.lua b/lsp/jsonls.lua index 1f2029c..b14743a 100644 --- a/lsp/jsonls.lua +++ b/lsp/jsonls.lua @@ -4,6 +4,7 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true return { cmd = { "vscode-json-language-server", "--stdio" }, filetypes = { "json", "jsonc" }, + root_markers = { "." }, capabilities = capabilities, init_options = { diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 192bc2c..d47e98e 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -60,7 +60,8 @@ return { "lua-language-server", "vtsls", "ruff", "mypy", "black", "pyright", "tailwindcss-language-server", "eslint-lsp", "lemminx", "gopls", "prettierd", "dotenv-linter", - "editorconfig-checker", "proselint", "rust-analyzer", "taplo" + "editorconfig-checker", "proselint", "rust-analyzer", "taplo", + "json-lsp" } }, config = function(_, opts)