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()
vim.keymap.set("n", "<leader>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",
"<leader>?", -- 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", "<leader>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",
-- "<leader>?", -- 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 }
-- )

View File

@@ -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 = {

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 -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