-- 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", "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 })