From ff9efcca0d3eaac351bd2d3f59fc0394d869a580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Dom=C3=ADnguez=20Ochoa?= Date: Mon, 14 Jul 2025 09:27:56 +0200 Subject: [PATCH] add-latest-changes --- nvim/.config/nvim/after/ftplugin/rust.lua | 40 +++++++++++------------ nvim/.config/nvim/lsp/rust.lua | 6 +--- tmux/.tmux.conf | 3 ++ 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/nvim/.config/nvim/after/ftplugin/rust.lua b/nvim/.config/nvim/after/ftplugin/rust.lua index 9848e28..698fe6c 100644 --- a/nvim/.config/nvim/after/ftplugin/rust.lua +++ b/nvim/.config/nvim/after/ftplugin/rust.lua @@ -1,21 +1,21 @@ local bufnr = vim.api.nvim_get_current_buf() -vim.keymap.set("n", "a", function() - vim.cmd.RustLsp("codeAction") -- supports rust-analyzer's grouping - -- or vim.lsp.buf.codeAction() if you don't want grouping. -end, { silent = true, buffer = bufnr }) -vim.keymap.set( - "n", - "K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions - function() - vim.cmd.RustLsp({ "hover", "actions" }) - end, - { silent = true, buffer = bufnr } -) -vim.keymap.set( - "n", - "?", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions - function() - vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) - end, - { buffer = bufnr } -) +-- vim.keymap.set("n", "a", function() +-- vim.cmd.RustLsp("codeAction") -- supports rust-analyzer's grouping +-- -- or vim.lsp.buf.codeAction() if you don't want grouping. +-- end, { silent = true, buffer = bufnr }) +-- vim.keymap.set( +-- "n", +-- "K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions +-- function() +-- vim.cmd.RustLsp({ "hover", "actions" }) +-- end, +-- { silent = true, buffer = bufnr } +-- ) +-- vim.keymap.set( +-- "n", +-- "?", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions +-- function() +-- vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) +-- end, +-- { buffer = bufnr } +-- ) diff --git a/nvim/.config/nvim/lsp/rust.lua b/nvim/.config/nvim/lsp/rust.lua index 7fbe39f..9dcef81 100644 --- a/nvim/.config/nvim/lsp/rust.lua +++ b/nvim/.config/nvim/lsp/rust.lua @@ -10,11 +10,7 @@ return { runBuildScripts = true, }, -- Add clippy lints for Rust - checkOnSave = { - allFeatures = true, - command = "clippy", - extraArgs = { "--no-deps" }, - }, + checkOnSave = true, procMacro = { enable = true, ignored = { diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 83deaf1..a355f1d 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -24,6 +24,9 @@ bind-key -n C-n new-window -c "#{pane_current_path}" bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" +### set-environment -g PATH "$HOMEBREW_PREFIX/bin:$PATH" +bind C-o popup -E -E -d "#{pane_current_path}" -w 90% -h 90% "opencode" + bind-key -n C-S-Down next-window bind-key -n C-S-Up previous-window bind-key -n C-S-Left swap-window -t -1\; select-window -t -1