From 494fbd5a4a5c8b207a1e9898820deab12997e0b0 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Fri, 28 Jan 2022 23:59:39 +0000
Subject: [PATCH] chore(nvim): remove auto-pairs plugin

---
 roles/neovim/files/after/plugin/autopairs.lua | 19 -------------------
 roles/neovim/files/lua/opdavies/plugins.lua   |  1 -
 2 files changed, 20 deletions(-)
 delete mode 100644 roles/neovim/files/after/plugin/autopairs.lua

diff --git a/roles/neovim/files/after/plugin/autopairs.lua b/roles/neovim/files/after/plugin/autopairs.lua
deleted file mode 100644
index ea4424e9..00000000
--- a/roles/neovim/files/after/plugin/autopairs.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local status_ok, autopairs = pcall(require, "nvim-autopairs")
-if not status_ok then
-  return
-end
-
-autopairs.setup {}
-
-local cmp_status_ok, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp")
-if not cmp_status_ok then
-  return
-end
-
-local cmp = require "cmp"
-cmp.event:on(
-  "confirm_done",
-  cmp_autopairs.on_confirm_done {
-    map_char = { tex = "" },
-  }
-)
diff --git a/roles/neovim/files/lua/opdavies/plugins.lua b/roles/neovim/files/lua/opdavies/plugins.lua
index fb01c569..970e40e4 100644
--- a/roles/neovim/files/lua/opdavies/plugins.lua
+++ b/roles/neovim/files/lua/opdavies/plugins.lua
@@ -39,7 +39,6 @@ return packer.startup(function()
   use "tpope/vim-surround"
   use "vim-test/vim-test"
   use "voldikss/vim-floaterm"
-  use "windwp/nvim-autopairs"
   use { "mg979/vim-visual-multi", branch = "master" }
 
   -- Themes