Changed parenthesis plugin
This commit is contained in:
parent
c512fa1226
commit
3bb6e35f3c
|
@ -0,0 +1,25 @@
|
||||||
|
require("autoclose").setup({
|
||||||
|
keys = {
|
||||||
|
["("] = { escape = false, close = true, pair = "()" },
|
||||||
|
["["] = { escape = false, close = true, pair = "[]" },
|
||||||
|
["{"] = { escape = false, close = true, pair = "{}" },
|
||||||
|
|
||||||
|
[">"] = { escape = true, close = false, pair = "<>" },
|
||||||
|
[")"] = { escape = true, close = false, pair = "()" },
|
||||||
|
["]"] = { escape = true, close = false, pair = "[]" },
|
||||||
|
["}"] = { escape = true, close = false, pair = "{}" },
|
||||||
|
|
||||||
|
['"'] = { escape = true, close = true, pair = '""' },
|
||||||
|
["'"] = { escape = true, close = true, pair = "''" },
|
||||||
|
["`"] = { escape = true, close = true, pair = "``" },
|
||||||
|
["$"] = { escape = true, close = true, pair = "$$", disabled_filetypes = {} },
|
||||||
|
},
|
||||||
|
options = {
|
||||||
|
disabled_filetypes = { "text" },
|
||||||
|
disable_when_touch = false,
|
||||||
|
touch_regex = "[%w(%[{]",
|
||||||
|
pair_spaces = true,
|
||||||
|
auto_indent = true,
|
||||||
|
disable_command_mode = false,
|
||||||
|
},
|
||||||
|
})
|
|
@ -102,21 +102,22 @@ local plugins = {
|
||||||
require('Comment').setup()
|
require('Comment').setup()
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{ 'm4xshen/autoclose.nvim' },
|
||||||
"windwp/nvim-autopairs",
|
-- {
|
||||||
config = function()
|
-- "windwp/nvim-autopairs",
|
||||||
require("nvim-autopairs").setup()
|
-- config = function()
|
||||||
end
|
-- require("nvim-autopairs").setup()
|
||||||
},
|
-- end
|
||||||
{
|
-- },
|
||||||
"kylechui/nvim-surround",
|
-- {
|
||||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
-- "kylechui/nvim-surround",
|
||||||
event = "VeryLazy",
|
-- version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
config = function()
|
-- event = "VeryLazy",
|
||||||
require("nvim-surround").setup({
|
-- config = function()
|
||||||
})
|
-- require("nvim-surround").setup({
|
||||||
end
|
-- })
|
||||||
},
|
-- end
|
||||||
|
-- },
|
||||||
{ "nvim-tree/nvim-tree.lua" },
|
{ "nvim-tree/nvim-tree.lua" },
|
||||||
{
|
{
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
|
|
Loading…
Reference in New Issue