1
0

add-latest-changes

This commit is contained in:
2025-07-14 09:27:56 +02:00
parent 88b5c27c67
commit ff9efcca0d
3 changed files with 24 additions and 25 deletions

View File

@@ -1,21 +1,21 @@
local bufnr = vim.api.nvim_get_current_buf() local bufnr = vim.api.nvim_get_current_buf()
vim.keymap.set("n", "<leader>a", function() -- vim.keymap.set("n", "<leader>a", function()
vim.cmd.RustLsp("codeAction") -- supports rust-analyzer's grouping -- vim.cmd.RustLsp("codeAction") -- supports rust-analyzer's grouping
-- or vim.lsp.buf.codeAction() if you don't want grouping. -- -- or vim.lsp.buf.codeAction() if you don't want grouping.
end, { silent = true, buffer = bufnr }) -- end, { silent = true, buffer = bufnr })
vim.keymap.set( -- vim.keymap.set(
"n", -- "n",
"K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions -- "K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions
function() -- function()
vim.cmd.RustLsp({ "hover", "actions" }) -- vim.cmd.RustLsp({ "hover", "actions" })
end, -- end,
{ silent = true, buffer = bufnr } -- { silent = true, buffer = bufnr }
) -- )
vim.keymap.set( -- vim.keymap.set(
"n", -- "n",
"<leader>?", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions -- "<leader>?", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions
function() -- function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) -- vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end, -- end,
{ buffer = bufnr } -- { buffer = bufnr }
) -- )

View File

@@ -10,11 +10,7 @@ return {
runBuildScripts = true, runBuildScripts = true,
}, },
-- Add clippy lints for Rust -- Add clippy lints for Rust
checkOnSave = { checkOnSave = true,
allFeatures = true,
command = "clippy",
extraArgs = { "--no-deps" },
},
procMacro = { procMacro = {
enable = true, enable = true,
ignored = { ignored = {

View File

@@ -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 -v -c "#{pane_current_path}"
bind % split-window -h -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-Down next-window
bind-key -n C-S-Up previous-window bind-key -n C-S-Up previous-window
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1 bind-key -n C-S-Left swap-window -t -1\; select-window -t -1