From 927f556aef20bb82190bccfdbb437046c8a20adf Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Sat, 18 Apr 2026 02:52:26 +0200 Subject: [PATCH] nvim + tmux tweaks --- CONFIG/nvim/init.lua | 19 +++++++++---------- CONFIG/tmux/tmux.conf | 3 +++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CONFIG/nvim/init.lua b/CONFIG/nvim/init.lua index c40b4e6..ac98ad1 100644 --- a/CONFIG/nvim/init.lua +++ b/CONFIG/nvim/init.lua @@ -238,17 +238,9 @@ vim.api.nvim_create_autocmd("LspAttach", { local bmap = function(mode, keys, func, desc) vim.keymap.set(mode, keys, func, { buffer = ev.buf, desc = desc }) end bmap("n", "gd", vim.lsp.buf.definition, "Goto Definition") - bmap("n", "gD", vim.lsp.buf.type_definition, "Goto Type Definition") - bmap("n", "gi", vim.lsp.buf.declaration, "Goto Declaration") - bmap("n", "gI", vim.lsp.buf.implementation, "Goto Implementation") - bmap("n", "gr", function() vim.lsp.buf.references({ includeDeclaration = false }) end, "Goto References") - + bmap("n", "gD", vim.lsp.buf.declaration, "Goto Declaration") + bmap("n", "gy", vim.lsp.buf.type_definition, "Goto Type Definition") bmap({ "n", "i" }, "", vim.lsp.buf.signature_help, "Signature Help") - bmap("n", "", vim.lsp.buf.rename, "Rename Symbol") - bmap({ "n", "x" }, "ca", vim.lsp.buf.code_action, "Code Action") - - -- K is automatically mapped to vim.lsp.buf.hover() in Neovim 0.10+ - -- If your LSP supports inlay hints, you can add a toggle here: local client = vim.lsp.get_client_by_id(ev.data.client_id) if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then bmap( @@ -967,6 +959,12 @@ local function makespec_whichkey() { "[", group = "prev" }, { "]", group = "next" }, { "g", group = "goto" }, + { "gr", group = "lsp actions", icon = { icon = " ", color = "purple" } }, + { "gra", desc = "Code Action" }, + { "gri", desc = "Goto Implementation" }, + { "grn", desc = "Rename Symbol" }, + { "grr", desc = "Goto References" }, + { "gy", desc = "Goto Type Definition" }, { "gs", group = "surround" }, { "z", group = "fold" }, { "", group = "tabs" }, @@ -1705,5 +1703,6 @@ vim.opt.rtp:prepend(lazypath) require("lazy").setup({ spec = lazyspecs, checker = { enabled = true }, + rocks = { enabled = false }, }) vim.cmd("colorscheme catppuccin") diff --git a/CONFIG/tmux/tmux.conf b/CONFIG/tmux/tmux.conf index a63086b..ed3937b 100644 --- a/CONFIG/tmux/tmux.conf +++ b/CONFIG/tmux/tmux.conf @@ -18,6 +18,9 @@ set -g default-terminal "tmux-256color" # Tell tmux which features the outer Foot client supports. set -as terminal-features ',foot*:RGB,clipboard,focus,title' +# Allow image passthrough +set -gq allow-passthrough on + # Start with index 1 set -g base-index 1 setw -g pane-base-index 1