From e7b3973bed40cc62d012ae1b884dfbf855752be0 Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Wed, 7 Jan 2026 12:02:24 +0100 Subject: Limit json schema set --- nvim/lua/config/lsp.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nvim/lua/config/lsp.lua b/nvim/lua/config/lsp.lua index 5a5b516..37dc6d7 100644 --- a/nvim/lua/config/lsp.lua +++ b/nvim/lua/config/lsp.lua @@ -3,7 +3,14 @@ vim.lsp.enable('jsonls') vim.lsp.config('jsonls', { settings = { json = { - schemas = require('schemastore').json.schemas(), + schemas = require('schemastore').json.schemas { + select = { + 'tsconfig.json', + 'package.json', + 'prettierrc.json', + '.eslintrc', + } + }, validate = { enable = true }, }, }, -- cgit v1.3.1