dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2a6b5f4d199bf410a6c5b7b6b04ef155d87f7f09
parent a494df4f43099682be8f4b0f0e32fd22ed7b1483
Author: Alexander Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Fri, 27 Oct 2023 20:18:05 +0200

nvim: diagnostic mappings

Diffstat:
Mnvim/init.lua | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nvim/init.lua b/nvim/init.lua @@ -60,8 +60,10 @@ vim.api.nvim_create_autocmd('TextYankPost', { -- Diagnostic keymaps vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', ']d', vim.diagnostic.goto_next) +vim.keymap.set('n', ']e', function() vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR }) end) +vim.keymap.set('n', '[e', function() vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR }) end) vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float) -vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist) +vim.keymap.set('n', '<leader>q', function() vim.diagnostic.setloclist({ severity = vim.diagnostic.severity.ERROR }) end) -- 'i' that indents correctly on empty lines vim.keymap.set('n', 'i', function()