diff options
| author | filip <“filip.rabiega@gmail.com”> | 2026-02-04 16:34:45 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2026-02-04 16:34:45 +0100 |
| commit | 7a7a8ace1dacfff121ce90110c7b5c8635d178c3 (patch) | |
| tree | a90d1abf42f5b4ea8917e57a02a482ed32a4fae8 /autopairs.lua | |
| download | lazy-plugins-7a7a8ace1dacfff121ce90110c7b5c8635d178c3.tar.gz lazy-plugins-7a7a8ace1dacfff121ce90110c7b5c8635d178c3.tar.bz2 lazy-plugins-7a7a8ace1dacfff121ce90110c7b5c8635d178c3.zip | |
plugin dump
Diffstat (limited to 'autopairs.lua')
| -rw-r--r-- | autopairs.lua | 42 |
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, + -- }, +} |
