neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(keymaps): update

+8 -9
+8 -6
lua/core/keymaps.lua
··· 1 1 local Util = require("utils") 2 2 3 + vim.g.mapleader = vim.keycode("<space>") 4 + 3 5 -- Fix default keymap errors 4 6 vim.keymap.set("x", "<c-c>", "<esc>") 5 7 -- Add undo break-points ··· 42 44 43 45 -- diagnostics 44 46 vim.keymap.set("n", "<leader>cd", vim.diagnostic.open_float, { desc = "Line Diagnostics" }) 45 - vim.keymap.set({ "n", "x" }, "]d", vim.diagnostic.goto_next, { desc = "Next Diagnostic" }) 46 - vim.keymap.set({ "n", "x" }, "[d", vim.diagnostic.goto_prev, { desc = "Prev Diagnostic" }) 47 47 -- stylua: ignore start 48 - vim.keymap.set({ "n", "x" }, "]e", function() vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR }) end, { desc = "Next Error" }) 49 - vim.keymap.set({ "n", "x" }, "[e", function() vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR }) end, { desc = "Prev Error" }) 50 - vim.keymap.set({ "n", "x" }, "]w", function() vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.WARN }) end, { desc = "Next Warning" }) 51 - vim.keymap.set({ "n", "x" }, "[w", function() vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.WARN }) end, { desc = "Prev Warning" }) 48 + vim.keymap.set({ "n", "x" }, "]d", function() vim.diagnostic.jump({ count = 1, float = true }) end, { desc = "Next Diagnostic" }) 49 + vim.keymap.set({ "n", "x" }, "[d", function() vim.diagnostic.jump({ count = -1, float = true }) end, { desc = "Prev Diagnostic" }) 50 + vim.keymap.set({ "n", "x" }, "]e", function() vim.diagnostic.jump({ count = 1, float = true, severity = vim.diagnostic.severity.ERROR }) end, { desc = "Next Error" }) 51 + vim.keymap.set({ "n", "x" }, "[e", function() vim.diagnostic.jump({ count = -1, float = true, severity = vim.diagnostic.severity.ERROR }) end, { desc = "Prev Error" }) 52 + vim.keymap.set({ "n", "x" }, "]w", function() vim.diagnostic.jump({ count = 1, float = true, severity = vim.diagnostic.severity.WARN }) end, { desc = "Next Warning" }) 53 + vim.keymap.set({ "n", "x" }, "[w", function() vim.diagnostic.jump({ count = -1, float = true, severity = vim.diagnostic.severity.WARN }) end, { desc = "Prev Warning" }) 52 54 -- stylua: ignore end 53 55 54 56 -- format
-3
lua/core/options.lua
··· 89 89 vim.o.winminwidth = 10 90 90 vim.o.wrap = false 91 91 92 - vim.g.mapleader = " " 93 - -- vim.cmd[[let mapleader = "\<tab>"]] 94 - 95 92 vim.g.editorconfig = true 96 93 97 94 -- disable providers (see :h provider)