Replace `auto-pairs` with `nvim-autopairs`

main
Ensar Sarajčić 2024-12-02 16:37:16 +01:00
parent 75915cbff9
commit 329e46f137
2 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,11 @@ return require("lazy").setup({
"lewis6991/impatient.nvim", -- Caching lua modules for faster startup
"j-hui/fidget.nvim", -- notifications UI
"MunifTanjim/nui.nvim", -- General UI
"jiangmiao/auto-pairs", -- Autoclosing of brackets and quotes
{
"windwp/nvim-autopairs", -- Autoclosing of brackets and quotes
event = "InsertEnter",
config = true,
},
"nvim-pack/nvim-spectre", -- Find and replace
-- Tools

View File

@ -67,3 +67,6 @@ cmp.setup({
cmp.setup.filetype("ledger", {
sources = cmp.config.sources({ name = "omni" }),
})
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())