Skip to content

Commit

Permalink
config(nvim): re-add mini.bracketed
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Dec 9, 2024
1 parent 6063893 commit 96a12d2
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion data/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,23 @@ vim.keymap.set({ "n", "v" }, ")", "<Nop>")
-- My Sofle V2 do not have map `[`, `]` directly
vim.keymap.set("n", ")d", "]d", { remap = true })
vim.keymap.set("n", "(d", "[d", { remap = true })
vim.keymap.set("n", ")D", "]D", { remap = true })
vim.keymap.set("n", "(D", "[D", { remap = true })

vim.keymap.set("n", ")c", "]c", { remap = true })
vim.keymap.set("n", "(c", "[c", { remap = true })
vim.keymap.set("n", ")C", "]C", { remap = true })
vim.keymap.set("n", "(C", "[C", { remap = true })

vim.keymap.set("n", ")x", "]x", { remap = true })
vim.keymap.set("n", "(x", "[x", { remap = true })
vim.keymap.set("n", ")X", "]X", { remap = true })
vim.keymap.set("n", "(X", "[X", { remap = true })

vim.keymap.set("n", ")t", "]t", { remap = true })
vim.keymap.set("n", "(t", "[t", { remap = true })
vim.keymap.set("n", ")T", "]T", { remap = true })
vim.keymap.set("n", "(T", "[T", { remap = true })

-- Disable scrolling
-- https://neovim.io/doc/user/scroll.html
Expand Down Expand Up @@ -185,7 +202,6 @@ require("lazy").setup({
"neovim/nvim-lspconfig",
},
opts = {

winopts = {
preview = {
wrap = "wrap",
Expand Down Expand Up @@ -262,6 +278,21 @@ require("lazy").setup({
{
"echasnovski/mini.nvim",
config = function()
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-bracketed.md
require("mini.bracketed").setup({
{
buffer = { suffix = "", options = {} },
file = { suffix = "", options = {} },
indent = { suffix = "", options = {} },
jump = { suffix = "", options = {} },
location = { suffix = "", options = {} },
oldfile = { suffix = "", options = {} },
undo = { suffix = "", options = {} },
window = { suffix = "", options = {} },
yank = { suffix = "", options = {} },
},
})

-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-cursorword.md
require("mini.cursorword").setup()

Expand Down Expand Up @@ -456,6 +487,14 @@ require("lazy").setup({
},
},

-- https://github.com/nvim-treesitter/nvim-treesitter-textobjects
{
"nvim-treesitter/nvim-treesitter-textobjects",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
},

-- https://github.com/neovim/nvim-lspconfig
{
"neovim/nvim-lspconfig",
Expand Down

0 comments on commit 96a12d2

Please sign in to comment.