diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2026-01-07 12:02:24 +0100 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2026-01-07 12:02:24 +0100 |
| commit | e7b3973bed40cc62d012ae1b884dfbf855752be0 (patch) | |
| tree | 607a21e9b360a4d6cfcea34314c9474ff1209807 /nvim/lua | |
| parent | 81fe5453c5fa19d495a145ad4ec9d60dcb1ee154 (diff) | |
Limit json schema set
Diffstat (limited to 'nvim/lua')
| -rw-r--r-- | nvim/lua/config/lsp.lua | 9 |
1 files changed, 8 insertions, 1 deletions
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 }, }, }, |
