Something went wrong. Try again.
mix of nix-managed dotfiles
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041---@type LazySpecreturn { { "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["<Leader>mv"] = { function() vim.api.nvim_feedkeys(":VMSearch ", "n", false) end, desc = "Select all matches by pattern", } maps.n["<Leader>ma"] = { "<Plug>(VM-Select-All)", desc = "Select all occurrences of word" } maps.x["<Leader>ma"] = { "<Plug>(VM-Visual-All)", desc = "Select all occurrences of selection" } maps.n["<C-S-Up>"] = { "<Plug>(VM-Add-Cursor-Up)", desc = "Add cursor above" } maps.n["<C-S-Down>"] = { "<Plug>(VM-Add-Cursor-Down)", desc = "Add cursor below" } maps.n["<C-S-Right>"] = { "<Plug>(VM-Select-e)", desc = "Select to end of word" } maps.n["<C-S-Left>"] = { "<Plug>(VM-Select-b)", desc = "Select to start of word" } end, },}