diff options
author | Philipp Szechenyi <45265588+szechp@users.noreply.github.com> | 2023-02-27 22:37:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 16:37:28 -0500 |
commit | 4a37a0a9b1d53fd355637256ac975c619226fb6d (patch) | |
tree | 09bfab9c5869a91d11b83545f7715498ab1b1377 | |
parent | 933ddee7d9583e97dc17100b6128fa664f6ee7cf (diff) |
added descriptions to Diagnostic keymaps (#191)
* Update init.lua
* Update init.lua
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -351,10 +351,10 @@ require('nvim-treesitter.configs').setup { } -- Diagnostic keymaps -vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) -vim.keymap.set('n', ']d', vim.diagnostic.goto_next) -vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float) -vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist) +vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" }) +vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" }) +vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = "Open floating diagnostic message" }) +vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = "Open diagnostics list" }) -- LSP settings. -- This function gets run when an LSP connects to a particular buffer. |