summaryrefslogtreecommitdiff
path: root/lua/config/lazy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/lazy.lua')
-rw-r--r--lua/config/lazy.lua54
1 files changed, 53 insertions, 1 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
index d29aa3a..1bd0b8a 100644
--- a/lua/config/lazy.lua
+++ b/lua/config/lazy.lua
@@ -19,7 +19,59 @@ require("lazy").setup({
"lewis6991/gitsigns.nvim",
"tpope/vim-vinegar",
"tpope/vim-eunuch",
- "mg979/vim-visual-multi",
+ -- "mg979/vim-visual-multi",
+ {
+ "brenton-leighton/multiple-cursors.nvim",
+ version = "*", -- Use the latest tagged version
+ opts = {
+ custom_key_maps = {
+ {
+ "n",
+ "<S-Tab>",
+ function()
+ require("multiple-cursors").align()
+ end,
+ },
+ },
+ },
+ 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",
+ },
+
+ {
+ "<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" },
+ },
+ },
"jghauser/follow-md-links.nvim",
"stevearc/conform.nvim",
"norcalli/nvim-colorizer.lua",