From ed1b7dc0a544302f17b7aa2c432a99db5a5aa3eb Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Sat, 16 Mar 2024 16:18:52 +0100 Subject: [PATCH] oops --- home/rachel.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/home/rachel.nix b/home/rachel.nix index 641a4e3..0fc6bad 100644 --- a/home/rachel.nix +++ b/home/rachel.nix @@ -243,7 +243,13 @@ in rec { }, 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'}, @@ -265,6 +271,12 @@ in rec { 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, }) @@ -544,7 +556,7 @@ in rec { "~button2" = "berryc pointer_focus"; "~button3" = "berryc pointer_focus"; "~Escape" = "dunstctl close-all"; - "Print" = "maim -s ~/img/scrot$(date +%s).png"; + "Print" = "maim -s ~/img/scrot/$(date +%s).png"; "XF86AudioMute" = "${vol} mute"; "XF86AudioRaiseVolume" = "${vol} +5%"; "XF86AudioLowerVolume" = "${vol} -5%";