.nvim/after/ftplugin/rust.lua
Erica Marigold ebcb199805
Initial config divergence from luka
Minor customizations for keybinds and adds luau-lsp support.
2025-02-05 00:39:41 +05:30

11 lines
416 B
Lua

-- disable autopairs for ' in rust since they're used in lifetimes
vim.keymap.set("i", "'", "'", { buffer = true })
-- Rustaceanvim
local bufnr = vim.api.nvim_get_current_buf()
vim.keymap.set("n", "<leader>a", function()
vim.cmd.RustLsp("codeAction")
end, { silent = true, buffer = bufnr })
vim.keymap.set("n", "K", function()
vim.cmd.RustLsp({ "hover", "actions" })
end, { silent = true, buffer = bufnr })