Changed parenthesis plugin

This commit is contained in:
Eduardo Cueto-Mendoza 2024-10-04 08:16:00 +01:00
parent c512fa1226
commit 3bb6e35f3c
3 changed files with 83 additions and 57 deletions

View File

@ -1,58 +1,58 @@
require('neoclip').setup({ require('neoclip').setup({
history = 1000, history = 1000,
enable_persistent_history = false, enable_persistent_history = false,
length_limit = 1048576, length_limit = 1048576,
continuous_sync = false, continuous_sync = false,
db_path = vim.fn.stdpath("data") .. "/databases/neoclip.sqlite3", db_path = vim.fn.stdpath("data") .. "/databases/neoclip.sqlite3",
filter = nil, filter = nil,
preview = true, preview = true,
prompt = nil, prompt = nil,
default_register = '"', default_register = '"',
default_register_macros = 'q', default_register_macros = 'q',
enable_macro_history = true, enable_macro_history = true,
content_spec_column = false, content_spec_column = false,
disable_keycodes_parsing = false, disable_keycodes_parsing = false,
on_select = { on_select = {
move_to_front = false, move_to_front = false,
close_telescope = true, close_telescope = true,
}, },
on_paste = { on_paste = {
set_reg = false, set_reg = false,
move_to_front = false, move_to_front = false,
close_telescope = true, close_telescope = true,
}, },
on_replay = { on_replay = {
set_reg = false, set_reg = false,
move_to_front = false, move_to_front = false,
close_telescope = true, close_telescope = true,
}, },
on_custom_action = { on_custom_action = {
close_telescope = true, close_telescope = true,
}, },
keys = { keys = {
telescope = { telescope = {
i = { i = {
select = '<cr>', select = '<cr>',
paste = '<c-j>', paste = '<c-j>',
paste_behind = '<c-k>', paste_behind = '<c-k>',
replay = '<c-q>', -- replay a macro replay = '<c-q>', -- replay a macro
delete = '<c-d>', -- delete an entry delete = '<c-d>', -- delete an entry
edit = '<c-e>', -- edit an entry edit = '<c-e>', -- edit an entry
custom = {}, custom = {},
}, },
n = { n = {
select = '<cr>', select = '<cr>',
paste = 'p', paste = 'p',
--- It is possible to map to more than one key. --- It is possible to map to more than one key.
-- paste = { 'p', '<c-p>' }, -- paste = { 'p', '<c-p>' },
paste_behind = 'P', paste_behind = 'P',
replay = 'q', replay = 'q',
delete = 'd', delete = 'd',
edit = 'e', edit = 'e',
custom = {}, custom = {},
}, },
}, },
}, },
}) })
vim.keymap.set("n", "<leader>o", "<cmd>Telescope neoclip<CR>", { desc = "Telescope Neoclip"}) vim.keymap.set("n", "<leader>o", "<cmd>Telescope neoclip<CR>", { desc = "Telescope Neoclip"})

View File

@ -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,
},
})

View File

@ -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',