-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change theme and other minor edits
- Loading branch information
1 parent
d2bb968
commit b012c8c
Showing
8 changed files
with
151 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
---@type LazySpec | ||
return { | ||
{ | ||
"mg979/vim-visual-multi", | ||
branch = "master", | ||
version = false, | ||
enabled = false, | ||
init = function() | ||
vim.g.VM_maps = {} | ||
vim.g.VM_mouse_mappings = 1 | ||
vim.g.VM_maps = { | ||
["Find Under"] = "<M-d>", | ||
["Find Subword Under"] = "<M-d>", | ||
["Skip Region"] = "<C-x>", | ||
["Select All"] = "<M-a>", | ||
["Start Regex Search"] = "\\/", | ||
} | ||
end, | ||
keys = { { "<M-d>", mode = { "n", "v" } }, { "<M-a>", mode = { "n", "v" } } }, | ||
}, | ||
{ | ||
"jake-stewart/multicursor.nvim", | ||
branch = "1.0", | ||
opts = {}, | ||
keys = function() | ||
local mc = require "multicursor-nvim" | ||
return { | ||
{ "<leader>mj", function() mc.lineAddCursor(1) end, desc = "add cursor dowm", mode = { "n", "x" } }, | ||
{ "<leader>mk", function() mc.lineAddCursor(-1) end, desc = "add cursor up", mode = { "n", "x" } }, | ||
{ "<leader>mJ", function() mc.lineSkipCursor(1) end, desc = "skip cursor down", mode = { "n", "x" } }, | ||
{ "<leader>mK", function() mc.lineSkipCursor(-1) end, desc = "skip cursor up", mode = { "n", "x" } }, | ||
{ "<leader>mn", function() mc.matchAddCursor(1) end, desc = "add cursor to next match", mode = { "n", "x" } }, | ||
{ "<leader>mp", function() mc.matchAddCursor(-1) end, desc = "add cursor to prev match", mode = { "n", "x" } }, | ||
{ "<leader>mN", function() mc.matchSkipCursor(1) end, desc = "skip cursor to next match", mode = { "n", "x" } }, | ||
{ | ||
"<leader>mP", | ||
function() mc.matchSkipCursor(-1) end, | ||
desc = "skip cursor to prev match", | ||
mode = { "n", "x" }, | ||
}, | ||
{ "<leader>ma", mc.matchAllAddCursors, desc = "all matches", mode = { "n", "x" } }, | ||
{ "<c-leftmouse>", mc.handleMouse, desc = "multicursor using mouse" }, | ||
{ "<leader>mt", mc.toggleCursor, desc = "toggle cursor" }, | ||
{ "<leader>mh", mc.prevCursor, desc = "goto prev cursor" }, | ||
{ "<leader>ml", mc.nextCursor, desc = "goto next cursor" }, | ||
{ "<leader>md", mc.deleteCursor, desc = "delete cursor" }, | ||
{ | ||
"<esc>", | ||
function() | ||
if not mc.cursorsEnabled() then | ||
mc.enableCursors() | ||
elseif mc.hasCursors() then | ||
mc.clearCursors() | ||
else | ||
vim.cmd "nohl" | ||
return "<esc>" | ||
end | ||
end, | ||
desc = "Escape cursor, No-Highlight", | ||
expr = true, | ||
}, | ||
} | ||
end, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters