diff --git a/lua/pika/plugins/init.lua b/lua/pika/plugins/init.lua index 2299bb6..c5d378d 100644 --- a/lua/pika/plugins/init.lua +++ b/lua/pika/plugins/init.lua @@ -2,4 +2,5 @@ return { "nvim-lua/plenary.nvim", -- lua functions that many plugins use "christoomey/vim-tmux-navigator", -- tmux & split window navigation "dstein64/nvim-scrollview", + { 'echasnovski/mini.surround', version = false }, } diff --git a/lua/pika/plugins/mini-pairs.lua.disabled b/lua/pika/plugins/mini-pairs.lua.disabled new file mode 100644 index 0000000..b95e892 --- /dev/null +++ b/lua/pika/plugins/mini-pairs.lua.disabled @@ -0,0 +1,20 @@ +return{ + "echasnovski/mini.pairs", + name = "mini-pairs", + event = "VeryLazy", + opts = { + modes = { insert = true, command = true, terminal = false }, + -- skip autopair when next character is one of these + skip_next = [=[[%w%%%'%[%"%.%`%$]]=], + -- skip autopair when the cursor is inside these treesitter nodes + skip_ts = { "string" }, + -- skip autopair when next character is closing pair + -- and there are more closing pairs than opening pairs + skip_unbalanced = true, + -- better deal with markdown code blocks + markdown = true, + }, + config = function() + require("mini-pairs") + end, +}