diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-10-13 23:52:54 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-10-13 23:52:54 +0200 |
| commit | 86628d459cabd0c29f0cdbb699e2e18807b958ed (patch) | |
| tree | 512801524e303fd9485496ed0f1dcd52d62cb38b /nvim/lua/plugins/autopairs.lua | |
| parent | c349d1f7998d97f60d3a3945ce8da166b33bf1c8 (diff) | |
| download | dotfiles-86628d459cabd0c29f0cdbb699e2e18807b958ed.tar.gz dotfiles-86628d459cabd0c29f0cdbb699e2e18807b958ed.zip | |
Removed unnecessary files/lines
Diffstat (limited to 'nvim/lua/plugins/autopairs.lua')
| -rw-r--r-- | nvim/lua/plugins/autopairs.lua | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/nvim/lua/plugins/autopairs.lua b/nvim/lua/plugins/autopairs.lua deleted file mode 100644 index 577e571..0000000 --- a/nvim/lua/plugins/autopairs.lua +++ /dev/null @@ -1,33 +0,0 @@ --- Setup nvim-cmp. -local status_ok, npairs = pcall(require, "nvim-autopairs") -if not status_ok then - return -end - -npairs.setup { - check_ts = true, - ts_config = { - lua = { "string", "source" }, - javascript = { "string", "template_string" }, - java = false, - }, - disable_filetype = { "TelescopePrompt", "spectre_panel" }, - fast_wrap = { - map = "<M-e>", - chars = { "{", "[", "(", '"', "'" }, - pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""), - offset = 0, -- Offset from pattern match - end_key = "$", - keys = "qwertyuiopzxcvbnmasdfghjkl", - check_comma = true, - highlight = "PmenuSel", - highlight_grey = "LineNr", - }, -} - -local cmp_autopairs = require "nvim-autopairs.completion.cmp" -local cmp_status_ok, cmp = pcall(require, "cmp") -if not cmp_status_ok then - return -end -cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } }) |
