From 8ab36a925e0622d52a3b0d52a50c6daf0f89feca Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Tue, 2 Jan 2024 19:10:28 +0100 Subject: [PATCH] feat: remove autopairs --- lua/plugins.lua | 4 ---- lua/plugins/autopairs.lua | 25 ------------------------- lua/plugins/cmp.lua | 11 ----------- 3 files changed, 40 deletions(-) delete mode 100644 lua/plugins/autopairs.lua diff --git a/lua/plugins.lua b/lua/plugins.lua index 1ec0952..a40669b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -44,10 +44,6 @@ local plugins = { ), version = "2.*", }, - { - "windwp/nvim-autopairs", - config = require("plugins.autopairs"), - }, { "saadparwaiz1/cmp_luasnip", }, diff --git a/lua/plugins/autopairs.lua b/lua/plugins/autopairs.lua deleted file mode 100644 index 620677b..0000000 --- a/lua/plugins/autopairs.lua +++ /dev/null @@ -1,25 +0,0 @@ ---[[ - Copyright 2023 Oscar Wallberg - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -]] - --- https://github.com/windwp/nvim-autopairs - -local function setup() - require("nvim-autopairs").setup({ - fast_wrap = {}, - }) -end - -return setup diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index d1e040f..44dabdf 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -161,17 +161,6 @@ local function setup() ), } ) - - utils.try_require( - "nvim-autopairs.completion.cmp", - module_name, - function (cmp_autopairs) - cmp.event:on( - "confirm_done", - cmp_autopairs.on_confirm_done() - ) - end - ) end return setup