summaryrefslogtreecommitdiff
path: root/autopairs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'autopairs.lua')
-rw-r--r--autopairs.lua42
1 files changed, 42 insertions, 0 deletions
diff --git a/autopairs.lua b/autopairs.lua
new file mode 100644
index 0000000..97407dc
--- /dev/null
+++ b/autopairs.lua
@@ -0,0 +1,42 @@
+return {
+ -- nvim-autopairs: auto close brackets, quotes
+ {
+ "windwp/nvim-autopairs",
+ event = "InsertEnter", -- lazy-load when entering insert mode
+ config = function()
+ require("nvim-autopairs").setup({})
+ end,
+ },
+
+ -- nvim-cmp: autocompletion engine
+ -- {
+ -- "hrsh7th/nvim-cmp",
+ -- event = "InsertEnter",
+ -- dependencies = {
+ -- "hrsh7th/cmp-nvim-lsp",
+ -- "hrsh7th/cmp-buffer",
+ -- "hrsh7th/cmp-path",
+ -- "saadparwaiz1/cmp_luasnip",
+ -- "L3MON4D3/LuaSnip",
+ -- },
+ -- config = function()
+ -- local cmp = require("cmp")
+ -- local luasnip = require("luasnip")
+ -- cmp.setup({
+ -- snippet = { expand = function(args) luasnip.lsp_expand(args.body) end },
+ -- mapping = cmp.mapping.preset.insert({
+ -- ["<C-n>"] = cmp.mapping.select_next_item(),
+ -- ["<C-p>"] = cmp.mapping.select_prev_item(),
+ -- ["<C-y>"] = cmp.mapping.confirm({ select = true }),
+ -- ["<C-Space>"] = cmp.mapping.complete(),
+ -- }),
+ -- sources = cmp.config.sources({
+ -- { name = "nvim_lsp" },
+ -- { name = "buffer" },
+ -- { name = "path" },
+ -- { name = "luasnip" },
+ -- }),
+ -- })
+ -- end,
+ -- },
+}