Update something
This commit is contained in:
parent
e3c94cce54
commit
147ca5ddbc
81 changed files with 3055 additions and 326 deletions
81
nvim/lua/plugins/multicursors.lua
Normal file
81
nvim/lua/plugins/multicursors.lua
Normal file
|
@ -0,0 +1,81 @@
|
|||
-- lazy.nvim:
|
||||
return {
|
||||
"brenton-leighton/multiple-cursors.nvim",
|
||||
version = "*", -- Use the latest tagged version
|
||||
opts = {}, -- This causes the plugin setup function to be called
|
||||
keys = {
|
||||
{
|
||||
"<C-j>",
|
||||
"<Cmd>MultipleCursorsAddDown<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Add cursor and move down",
|
||||
},
|
||||
{
|
||||
"<C-k>",
|
||||
"<Cmd>MultipleCursorsAddUp<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Add cursor and move up",
|
||||
},
|
||||
|
||||
{
|
||||
"<C-Up>",
|
||||
"<Cmd>MultipleCursorsAddUp<CR>",
|
||||
mode = { "n", "i", "x" },
|
||||
desc = "Add cursor and move up",
|
||||
},
|
||||
{
|
||||
"<C-Down>",
|
||||
"<Cmd>MultipleCursorsAddDown<CR>",
|
||||
mode = { "n", "i", "x" },
|
||||
desc = "Add cursor and move down",
|
||||
},
|
||||
|
||||
{
|
||||
"<C-LeftMouse>",
|
||||
"<Cmd>MultipleCursorsMouseAddDelete<CR>",
|
||||
mode = { "n", "i" },
|
||||
desc = "Add or remove cursor",
|
||||
},
|
||||
|
||||
{
|
||||
"<Leader>m",
|
||||
"<Cmd>MultipleCursorsAddVisualArea<CR>",
|
||||
mode = { "x" },
|
||||
desc = "Add cursors to the lines of the visual area",
|
||||
},
|
||||
|
||||
{
|
||||
"<Leader>a",
|
||||
"<Cmd>MultipleCursorsAddMatches<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Add cursors to cword",
|
||||
},
|
||||
{
|
||||
"<Leader>A",
|
||||
"<Cmd>MultipleCursorsAddMatchesV<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Add cursors to cword in previous area",
|
||||
},
|
||||
|
||||
{
|
||||
"<Leader>d",
|
||||
"<Cmd>MultipleCursorsAddJumpNextMatch<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Add cursor and jump to next cword",
|
||||
},
|
||||
{
|
||||
"<Leader>D",
|
||||
"<Cmd>MultipleCursorsJumpNextMatch<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Jump to next cword",
|
||||
},
|
||||
|
||||
{
|
||||
"<Leader>l",
|
||||
"<Cmd>MultipleCursorsLock<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Lock virtual cursors",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue