From 8cc95ea22dc776fed0bb9d86d840ea8d3a92d91b Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Wed, 1 Apr 2026 01:42:48 +0200 Subject: feat!: necessary changes for 0.12, enable nvim.undotree --- lsp/jsonls.lua | 7 ++++++- lua/pml68/plugins/lang-specific.lua | 1 + lua/pml68/remap.lua | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lsp/jsonls.lua b/lsp/jsonls.lua index c6c0776..321dda6 100644 --- a/lsp/jsonls.lua +++ b/lsp/jsonls.lua @@ -1,8 +1,13 @@ +---@diagnostic disable: missing-fields, inject-field + +---@type vim.lsp.ClientConfig return { settings = { json = { - schemas = require('schemastore').json.schemas(), validate = { enable = true }, }, }, + before_init = function (_, config) + config.settings.json.schemas = require("schemastore").json.schemas() + end, } diff --git a/lua/pml68/plugins/lang-specific.lua b/lua/pml68/plugins/lang-specific.lua index 1b1547a..b1eff88 100644 --- a/lua/pml68/plugins/lang-specific.lua +++ b/lua/pml68/plugins/lang-specific.lua @@ -2,6 +2,7 @@ return { -- JSON { "b0o/schemastore.nvim", + lazy = false, }, -- Java { diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index 1f2d423..0af8323 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -62,6 +62,10 @@ vim.keymap.set("n", "gt", "GoMod tidy") -- Screenkey vim.keymap.set("n", "sk", "Screenkey") +-- Undotree +vim.cmd("packadd nvim.undotree") +vim.keymap.set("n", "u", require("undotree").open) + -- Telescope vim.keymap.set('n', 'ff', "Telescope find_files", {}) vim.keymap.set('n', 'fw', "Telescope live_grep", {}) -- cgit v1.2.3