From 6b2a0702a55fa235a076a6bc7c433dd03d625c00 Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Mon, 15 Dec 2025 10:39:23 +0100 Subject: Add json LSP --- nvim/lua/config/lazy.lua | 3 +++ nvim/lua/config/lsp.lua | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 nvim/lua/config/lsp.lua (limited to 'nvim/lua') diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua index 7a35945..b24627d 100644 --- a/nvim/lua/config/lazy.lua +++ b/nvim/lua/config/lazy.lua @@ -58,6 +58,9 @@ require("lazy").setup({ opts = {}, }, { "prettier/vim-prettier" }, + { "neovim/nvim-lspconfig" }, + { "b0o/schemastore.nvim" }, + require("config.blink-cmp"), }, install = { colorscheme = { "gruvbox" } }, diff --git a/nvim/lua/config/lsp.lua b/nvim/lua/config/lsp.lua new file mode 100644 index 0000000..bdf4e02 --- /dev/null +++ b/nvim/lua/config/lsp.lua @@ -0,0 +1,9 @@ +vim.lsp.enable('jsonls') +vim.lsp.config('jsonls', { + settings = { + json = { + schemas = require('schemastore').json.schemas(), + validate = { enable = true }, + }, + }, +}) -- cgit v1.3.1