From 9dc910eae3b20454acf434c72367ee809b8d4b30 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 1 Mar 2022 15:08:30 +0100 Subject: [PATCH] home: vim: add diagnostic navigation mappings --- home/vim/after/plugin/mappings/unimpaired.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/vim/after/plugin/mappings/unimpaired.vim b/home/vim/after/plugin/mappings/unimpaired.vim index cdebacd..884e56c 100644 --- a/home/vim/after/plugin/mappings/unimpaired.vim +++ b/home/vim/after/plugin/mappings/unimpaired.vim @@ -30,6 +30,8 @@ local keys = { u = "URL encode", x = "XML encode", y = "C string encode", + -- Custom + d = { vim.diagnostic.goto_prev, "Previous diagnostic" } }, ["]"] = { name = "Next", @@ -58,6 +60,8 @@ local keys = { u = "URL decode", x = "XML decode", y = "C string decode", + -- Custom + d = { vim.diagnostic.goto_next, "Next diagnostic" } }, -- Option mappings