mini.nvim shenanigans lol
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
return {
|
||||
'voldikss/vim-floaterm',
|
||||
}
|
||||
@@ -16,5 +16,42 @@ return {
|
||||
},
|
||||
})
|
||||
require("mini.notify").setup()
|
||||
require("mini.move").setup({
|
||||
mappings = {
|
||||
down = "J",
|
||||
up = "K",
|
||||
},
|
||||
})
|
||||
require("mini.surround").setup({
|
||||
mappings = {
|
||||
add = "<leader>sa",
|
||||
delete = "<leader>sd", -- Delete surrounding
|
||||
find = "<leader>sf", -- Find surrounding (to the right)
|
||||
find_left = "<leader>sF", -- Find surrounding (to the left)
|
||||
highlight = "<leader>sh", -- Highlight surrounding
|
||||
replace = "<leader>sr", -- Replace surrounding
|
||||
update_n_lines = "<leader>sn", -- Update `n_lines`
|
||||
},
|
||||
})
|
||||
require("mini.ai").setup({
|
||||
mappings = {
|
||||
-- Main textobject prefixes
|
||||
around = "a",
|
||||
inside = "i",
|
||||
|
||||
-- Next/last variants
|
||||
-- NOTE: These override built-in LSP selection mappings on Neovim>=0.12
|
||||
-- Map LSP selection manually to use it (see `:h MiniAi.config`)
|
||||
around_next = "<leader>an",
|
||||
inside_next = "<leader>in",
|
||||
around_last = "<leader>al",
|
||||
inside_last = "<leader>il",
|
||||
|
||||
-- Move cursor to corresponding edge of `a` textobject
|
||||
goto_left = "<leader>g[",
|
||||
goto_right = "<leader>g]",
|
||||
},
|
||||
})
|
||||
require("mini.pick").setup({})("test")
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ return {
|
||||
lazy = false,
|
||||
---@type snacks.Config
|
||||
opts = {
|
||||
lazygit = { enabled = true },
|
||||
bigfile = { enabled = true },
|
||||
|
||||
picker = {},
|
||||
@@ -12,13 +13,13 @@ return {
|
||||
width = 100,
|
||||
preset = {
|
||||
keys = {
|
||||
{ icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
|
||||
{ icon = " ", key = "f", desc = "Find File", action = ":Pick files" },
|
||||
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
||||
{
|
||||
icon = " ",
|
||||
key = "g",
|
||||
desc = "Find Text",
|
||||
action = ":lua Snacks.dashboard.pick('live_grep')",
|
||||
action = ":Pick live_grep",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
|
||||
Reference in New Issue
Block a user