diff --git a/home/rachel.nix b/home/rachel.nix index 227b726..a3e3f17 100644 --- a/home/rachel.nix +++ b/home/rachel.nix @@ -210,7 +210,13 @@ in }, sections = { lualine_a = {'mode'}, - lualine_b = { { 'diagnostics', always_visible = true } }, + lualine_b = { { + 'diagnostics', + always_visible = true, + on_click = function(n,b,m) + vim.diagnostic.goto_next() + end + } }, lualine_c = {'filename'}, lualine_x = {'encoding', 'filetype'}, lualine_y = {'progress'}, @@ -232,6 +238,12 @@ in vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) vim.keymap.set('n', 'r', vim.lsp.buf.rename, opts) vim.keymap.set('n', 'a', vim.lsp.buf.code_action, opts) + vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) + vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts) + vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) + vim.keymap.set('n', 'e', vim.diagnostic.open_float, opts) + vim.keymap.set('n', 'n', vim.diagnostic.goto_next, opts) + vim.keymap.set('n', 'N', vim.diagnostic.goto_prev, opts) vim.keymap.set('i', '', vim.lsp.omnifunc, opts) end, })