Skip to content

Commit fda53b4

Browse files
committed
organise pairs plugins
1 parent 190dc1a commit fda53b4

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

lua/config/options.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Plugin options
2-
vim.g.pairs = "blinkpairs" -- autopairs or blinkpairs
2+
vim.g.pairs = "blinkpairs" -- minipairs, autopairs or blinkpairs
33
vim.g.picker = "snacks" -- fzf or snacks
44
vim.g.prettier_tool = "prettierd" -- prettier or prettierd
55
vim.g.statusline = "lualine" -- lualine or heirline

lua/plugins/mini.lua

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ return {
3232
end,
3333
},
3434

35-
-- {
36-
-- "echasnovski/mini.pairs",
37-
-- event = "LazyFile",
38-
-- opts = {},
39-
-- },
40-
41-
{
42-
"windwp/nvim-autopairs",
43-
event = "InsertEnter",
44-
opts = {},
45-
},
46-
4735
{
4836
"echasnovski/mini.splitjoin",
4937
event = "LazyFile",
@@ -154,6 +142,7 @@ return {
154142
require("mini.files").setup(opts)
155143

156144
local show_dotfiles = true
145+
---@diagnostic disable-next-line: unused-local
157146
local filter_show = function(fs_entry)
158147
return true
159148
end

lua/plugins/pairs.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
return {
2+
{
3+
"echasnovski/mini.pairs",
4+
enabled = vim.g.pairs == "mini",
5+
event = "LazyFile",
6+
opts = {},
7+
},
8+
29
{
310
"windwp/nvim-autopairs",
411
enabled = vim.g.pairs == "autopairs",

0 commit comments

Comments
 (0)