diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 5ea8ff6..c602f28 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -17,12 +17,12 @@ "nvim-comment": { "branch": "main", "commit": "e9ac16ab056695cad6461173693069ec070d2b23" }, "nvim-config-local": { "branch": "main", "commit": "990f3e35e0fba8fb83012d7e85f9a6a77de7f87f" }, "nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" }, - "nvim-lspconfig": { "branch": "master", "commit": "9ae2b3b63b924b1329724dae76e9d2c5c40b389c" }, + "nvim-lspconfig": { "branch": "master", "commit": "1c0d8f70dbc8827263eedc3cf7021ceba0f68689" }, "nvim-web-devicons": { "branch": "master", "commit": "2ae6958df7ced50baac5035cec0c15799eedfbf7" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, "render-markdown.nvim": { "branch": "main", "commit": "f422cb5c6855f150e2ddcfaf44e7157b98b34f6a" }, "rose-pine": { "branch": "main", "commit": "ff483051a47e27d84bdef47703538df1ed9f4a47" }, - "schemastore.nvim": { "branch": "main", "commit": "19e40cef03a380bfb578793a08222826118664dd" }, + "schemastore.nvim": { "branch": "main", "commit": "9f98b46e1dd61aeb666989c344d76517df63af55" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" }, "trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" }, diff --git a/nvim/lua/config/keys.lua b/nvim/lua/config/keys.lua index 171753d..788bcc6 100644 --- a/nvim/lua/config/keys.lua +++ b/nvim/lua/config/keys.lua @@ -81,8 +81,12 @@ vim.keymap.set("n", "q", "q") vim.keymap.set("n", "Q", "qa") -- lsp -vim.keymap.set("n", "[d", "lua vim.diagnostic.goto_prev()") -vim.keymap.set("n", "]d", "lua vim.diagnostic.goto_next()") +vim.keymap.set("n", "[d", function() + vim.diagnostic.jump({ count = -1 }) +end) +vim.keymap.set("n", "]d", function() + vim.diagnostic.jump({ count = 1 }) +end) vim.keymap.set("n", "K", "lua vim.lsp.buf.hover()") vim.keymap.set("n", "gs", "Telescope lsp_document_symbols") vim.keymap.set("n", "gS", "Telescope lsp_dynamic_workspace_symbols")