Skip to content

Commit

Permalink
chore: mini.surround changes for nvim-astro
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-cpp committed Dec 19, 2024
1 parent d37354f commit 9019c54
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions .config/lazygit/state.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
lastupdatecheck: 0
recentrepos:
- /home/shubham/Documents/dotfiles
- /home/shubham/Documents/Programming/WebDev/invoice-genrator-nextjs
- /home/shubham/Documents/Programming/WebDev/invoice-generator-sveltekit
- /home/shubham/Documents/Programming/WebDev/vue3-chrome-ai
- /home/shubham/Documents/Programming/WebDev/demo-shadcn
Expand Down
2 changes: 1 addition & 1 deletion .config/nvim-astro/lua/plugins/flash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return {
},
-- stylua: ignore
keys = {
{ "-", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
{ "S", mode = { "n", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
Expand Down
26 changes: 13 additions & 13 deletions .config/nvim-astro/lua/plugins/mini/surround.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ return {
"echasnovski/mini.surround",
enabled = true,
keys = {
{ "s", "", desc = "+surround" },
{ "sa", mode = { "n", "v" }, desc = "Surround add" },
{ "sd", mode = { "n" }, desc = "Surround delete" },
{ "sr", mode = { "n" }, desc = "Surround replace" },
{ "sf", mode = { "n" }, desc = "Surround find" },
{ "sh", mode = { "n" }, desc = "Surround highlight" },
{ "gz", "", desc = "+surround" },
{ "ys", mode = { "n", "v" }, desc = "Surround add" },
{ "ds", mode = { "n" }, desc = "Surround delete" },
{ "cs", mode = { "n" }, desc = "Surround replace" },
{ "gzf", mode = { "n" }, desc = "Surround find" },
{ "gzh", mode = { "n" }, desc = "Surround highlight" },
},
opts = {
search_method = "cover_or_prev",
n_lines = 500,
mappings = {
add = "sa", -- Add surrounding in Normal and Visual modes
delete = "sd", -- Delete surrounding
replace = "sr", -- Replace surrounding
find = "sf", -- Find surrounding (to the right)
find_left = "sF", -- Find surrounding (to the left)
highlight = "sh", -- Highlight surrounding
update_n_lines = "sn", -- Update `n_lines`
add = "ys", -- Add surrounding in Normal and Visual modes
delete = "ds", -- Delete surrounding
replace = "cs", -- Replace surrounding
find = "gzf", -- Find surrounding (to the right)
find_left = "gzF", -- Find surrounding (to the left)
highlight = "gzh", -- Highlight surrounding
update_n_lines = "gzn", -- Update `n_lines`
},
},
}

0 comments on commit 9019c54

Please sign in to comment.