Updated config
This commit is contained in:
@ -1,14 +0,0 @@
|
||||
return {
|
||||
"brenton-leighton/multiple-cursors.nvim",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{"<C-Down>", "<Cmd>MultipleCursorsAddDown<CR>", mode = {"n", "i"}},
|
||||
{"<C-j>", "<Cmd>MultipleCursorsAddDown<CR>"},
|
||||
{"<C-Up>", "<Cmd>MultipleCursorsAddUp<CR>", mode = {"n", "i"}},
|
||||
{"<C-k>", "<Cmd>MultipleCursorsAddUp<CR>"},
|
||||
{"<C-LeftMouse>", "<Cmd>MultipleCursorsMouseAddDelete<CR>", mode = {"n", "i"}},
|
||||
{"<Leader>a", "<Cmd>MultipleCursorsAddBySearch<CR>", mode = {"n", "x"}},
|
||||
{"<Leader>A", "<Cmd>MultipleCursorsAddBySearchV<CR>", mode = {"n", "x"}},
|
||||
},
|
||||
config = true,
|
||||
}
|
@ -8,9 +8,9 @@ map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
|
||||
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
|
||||
|
||||
-- Buffer management
|
||||
map("n", "<C-n>", "<cmd>enew<cr>", "New file")
|
||||
map("n", "<C-t>", "<cmd>enew<cr>", "New file")
|
||||
map({ "i", "n", "s", "v" }, "<C-s>", "<cmd>w<cr>", "Save file")
|
||||
map("n", "<C-q>", "<cmd>bd<cr>", "Delete buffer")
|
||||
map("n", "<C-q>", "<cmd>close<cr>", "Close window")
|
||||
|
||||
-- Copy and paste
|
||||
map("v", "<C-c>", "y")
|
||||
@ -27,10 +27,10 @@ map("n", "<C-Enter>", "i<Enter>", "Split line")
|
||||
map({"n", "v"}, "<C-a>", "<esc>ggVG", "Select all")
|
||||
|
||||
-- Editing multiple instances
|
||||
map("n", "<f3>", "*#", "Search word under cursor")
|
||||
map("n", "<f3>", "#*", "Search word under cursor")
|
||||
map("v", "<f3>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
map("n", "<C-d>", "viw", "Select word under cursor")
|
||||
map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
-- map("n", "<C-d>", "viw", "Select word under cursor")
|
||||
-- map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
map("n", "<C-r>", "*#:%s//<C-r><C-w>/g<left><left>", "Replace word under cursor")
|
||||
map("v", "<C-r>", "y/<C-r>\"<cr>N:%s//<C-r>\"/g<left><left>", "Replace selection")
|
||||
|
||||
@ -71,3 +71,9 @@ map("i", "<S-Up>", "<Esc>v<Up>")
|
||||
map("i", "<S-Down>", "<Esc>v<Down>")
|
||||
map("i", "<S-Left>", "<Esc>v<Left>")
|
||||
map("i", "<S-Right>", "<Esc>v<Right>")
|
||||
|
||||
-- Window switching
|
||||
map("n", "<A-Up>", "<C-w>k", "Move to the window above")
|
||||
map("n", "<A-Down>", "<C-w>j", "Move to the window below")
|
||||
map("n", "<A-Left>", "<C-w>h", "Move to the window on the left")
|
||||
map("n", "<A-Right>", "<C-w>l", "Move to the window on the right")
|
||||
|
@ -1,5 +1,5 @@
|
||||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
config = true
|
||||
config = true,
|
||||
}
|
||||
|
14
.config/nvim/lua/plugins/multicursor.lua
Normal file
14
.config/nvim/lua/plugins/multicursor.lua
Normal file
@ -0,0 +1,14 @@
|
||||
return {
|
||||
"mg979/vim-visual-multi",
|
||||
keys = {
|
||||
{ "<C-d>", mode = { "n", "x" }, desc = "Multicursor (word)" },
|
||||
{ "<C-Up>", mode = { "n", "x" }, desc = "Multicursor (next line)" },
|
||||
{ "<C-Down>", mode = { "n", "x" }, desc = "Multicursor (previous line)" },
|
||||
},
|
||||
init = function()
|
||||
vim.g.VM_maps = {
|
||||
["Find Under"] = "<C-d>",
|
||||
["Find Subword Under"] = "<C-d>",
|
||||
}
|
||||
end,
|
||||
}
|
@ -3,6 +3,8 @@ return {
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
background_colour = "#000000",
|
||||
fps = 60,
|
||||
render = "compact",
|
||||
timeout = 0,
|
||||
},
|
||||
config = true,
|
||||
|
Reference in New Issue
Block a user