add-latest-changes
This commit is contained in:
@@ -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 }
|
||||||
)
|
-- )
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user