local map = require 'config.helpers.keymap' local n = map 'n' local function get_opts() local tools = require 'rustaceanvim' ---@type RustaceanOpts return { server = { on_attach = function(_, bufnr) n '' (tools.hover_actions.hover_actions) { buffer = bufnr } n 'a' (tools.code_action_group.code_action_group) { buffer = bufnr } end, }, } end return function() vim.g.rustaceanvim = get_opts end