diff options
author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-05-24 14:29:26 +0100 |
---|---|---|
committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-05-24 14:29:26 +0100 |
commit | f1732edc922970f1532d4aa87df2d5462adbc637 (patch) | |
tree | 53c347ec1082a2f051dfc415048d5c8b3a66f86a /home/.config/nvim/lua/custom/plugins/completion.lua | |
parent | 57eab5944742268c52060efff20778aa50c0fa4f (diff) | |
download | dotfiles-f1732edc922970f1532d4aa87df2d5462adbc637.tar.gz dotfiles-f1732edc922970f1532d4aa87df2d5462adbc637.tar.bz2 dotfiles-f1732edc922970f1532d4aa87df2d5462adbc637.zip |
[nvim] Add autopairs
Diffstat (limited to 'home/.config/nvim/lua/custom/plugins/completion.lua')
-rw-r--r-- | home/.config/nvim/lua/custom/plugins/completion.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/completion.lua b/home/.config/nvim/lua/custom/plugins/completion.lua index e122857..789a459 100644 --- a/home/.config/nvim/lua/custom/plugins/completion.lua +++ b/home/.config/nvim/lua/custom/plugins/completion.lua @@ -80,12 +80,16 @@ return { { name = "dap" }, }, }) + + local cmp_autopairs = require 'nvim-autopairs.completion.cmp' + cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) end, dependencies = { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp-signature-help", "rcarriga/cmp-dap", + "windwp/nvim-autopairs", { "saadparwaiz1/cmp_luasnip", dependencies = { |