diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 2dbf084..7ff7d78 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -49,9 +49,15 @@ end, { desc = 'Diagnostics: Buffer errors (location list)', silent = true }) map('n', 'xE', function() vim.diagnostic.setqflist({ severity = vim.diagnostic.severity.ERROR }) end, { desc = 'Diagnostics: All errors (quickfix)', silent = true }) -map('n', '[d', vim.diagnostic.goto_prev, { desc = 'Diagnostics: Previous diagnostic', silent = true }) -map('n', ']d', vim.diagnostic.goto_next, { desc = 'Diagnostics: Next diagnostic', silent = true }) -map('n', 'xd', vim.diagnostic.open_float, { desc = 'Diagnostics: Show diagnostic under cursor', silent = true }) +map('n', '[d', function() + vim.diagnostic.goto_prev({ float = false }) +end, { desc = 'Diagnostics: Previous diagnostic', silent = true }) +map('n', ']d', function() + vim.diagnostic.goto_next({ float = false }) +end, { desc = 'Diagnostics: Next diagnostic', silent = true }) +map('n', 'xd', function() + pcall(vim.diagnostic.open_float) +end, { desc = 'Diagnostics: Show diagnostic under cursor', silent = true }) map('n', 'xt', function() vim.diagnostic.enable(not vim.diagnostic.is_enabled()) end, { desc = 'Diagnostics: Toggle display', silent = true }) diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 4143d2a..e0c3f1a 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -774,3 +774,4 @@ Trengo Hostinger's hPanel reauthoring +dropdowns diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index f891df9..73205d8 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ