---@type LazySpec return { { "mg979/vim-visual-multi", event = "VeryLazy", init = function() vim.g.VM_default_mappings = 1 vim.g.VM_show_matches = 1 end, config = function() -- Extra cursors are not real cursors, they are matchadd highlights. -- nvim cannot blink those in the terminal, so give each state a solid -- Catppuccin Mocha block to keep every cursor point visible. vim.cmd [[ hi VM_Mono guibg=#89b4fa guifg=#1e1e2e hi VM_Cursor guibg=#cba6f7 guifg=#1e1e2e hi VM_Insert guibg=#f5c2e7 guifg=#1e1e2e hi VM_Extend guibg=#45475a guifg=#cdd6f4 ]] end, }, { "AstroNvim/astrocore", opts = function(_, opts) local maps = opts.mappings maps.n["mv"] = { function() vim.api.nvim_feedkeys(":VMSearch ", "n", false) end, desc = "Select all matches by pattern", } maps.n["ma"] = { "(VM-Select-All)", desc = "Select all occurrences of word" } maps.x["ma"] = { "(VM-Visual-All)", desc = "Select all occurrences of selection" } maps.n[""] = { "(VM-Add-Cursor-Up)", desc = "Add cursor above" } maps.n[""] = { "(VM-Add-Cursor-Down)", desc = "Add cursor below" } maps.n[""] = { "(VM-Select-e)", desc = "Select to end of word" } maps.n[""] = { "(VM-Select-b)", desc = "Select to start of word" } end, }, }