update
This commit is contained in:
@@ -67,17 +67,17 @@ vim.schedule(function()
|
||||
end)
|
||||
|
||||
-- enables remote clipboard
|
||||
vim.g.clipboard = {
|
||||
name = 'OSC 52',
|
||||
copy = {
|
||||
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
|
||||
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
|
||||
},
|
||||
paste = {
|
||||
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
|
||||
['*'] = require('vim.ui.clipboard.osc52').paste('*'),
|
||||
},
|
||||
}
|
||||
-- vim.g.clipboard = {
|
||||
-- name = 'OSC 52',
|
||||
-- copy = {
|
||||
-- ['+'] = require('vim.ui.clipboard.osc52').copy('+'),
|
||||
-- ['*'] = require('vim.ui.clipboard.osc52').copy('*'),
|
||||
-- },
|
||||
-- paste = {
|
||||
-- ['+'] = require('vim.ui.clipboard.osc52').paste('+'),
|
||||
-- ['*'] = require('vim.ui.clipboard.osc52').paste('*'),
|
||||
-- },
|
||||
-- }
|
||||
|
||||
-- Ruff and pyright cross-compatibility
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
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 }
|
||||
)
|
||||
@@ -131,4 +131,9 @@ return {
|
||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||
}
|
||||
},
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^6', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user