diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2026-04-01 01:42:48 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2026-04-01 01:42:48 +0200 |
| commit | 8cc95ea22dc776fed0bb9d86d840ea8d3a92d91b (patch) | |
| tree | 4bd94b54ae849d92adb18661b8e1f533ca00c4b9 | |
| parent | chore: update telescope, clang (docker) (diff) | |
| download | nvim-8cc95ea22dc776fed0bb9d86d840ea8d3a92d91b.tar.gz | |
feat!: necessary changes for 0.12, enable nvim.undotree
| -rw-r--r-- | lsp/jsonls.lua | 7 | ||||
| -rw-r--r-- | lua/pml68/plugins/lang-specific.lua | 1 | ||||
| -rw-r--r-- | lua/pml68/remap.lua | 4 |
3 files changed, 11 insertions, 1 deletions
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", "<leader>gt", "<cmd>GoMod tidy<CR>") -- Screenkey vim.keymap.set("n", "<leader>sk", "<cmd>Screenkey<CR>") +-- Undotree +vim.cmd("packadd nvim.undotree") +vim.keymap.set("n", "<leader>u", require("undotree").open) + -- Telescope vim.keymap.set('n', '<leader>ff', "<cmd>Telescope find_files<CR>", {}) vim.keymap.set('n', '<leader>fw', "<cmd>Telescope live_grep<CR>", {}) |
