From 4c8dd5cc90c34c3196d632a072c3e1b271aaa983 Mon Sep 17 00:00:00 2001 From: Tim Redband Date: Mon, 25 Mar 2024 16:11:33 -0400 Subject: [PATCH] add custom plugins --- lua/custom/plugins/autopairs.lua | 12 ++++++++++++ lua/custom/plugins/neotree.lua | 12 ++++++++++++ lua/custom/plugins/{init.lua => vim-helm.lua} | 7 ++++++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/autopairs.lua create mode 100644 lua/custom/plugins/neotree.lua rename lua/custom/plugins/{init.lua => vim-helm.lua} (76%) diff --git a/lua/custom/plugins/autopairs.lua b/lua/custom/plugins/autopairs.lua new file mode 100644 index 00000000..529c3308 --- /dev/null +++ b/lua/custom/plugins/autopairs.lua @@ -0,0 +1,12 @@ +return { + 'windwp/nvim-autopairs', + -- Optional dependency + dependencies = { 'hrsh7th/nvim-cmp' }, + config = function() + require('nvim-autopairs').setup {} + -- If you want to automatically add `(` after selecting a function or method + local cmp_autopairs = require 'nvim-autopairs.completion.cmp' + local cmp = require 'cmp' + cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) + end, +} diff --git a/lua/custom/plugins/neotree.lua b/lua/custom/plugins/neotree.lua new file mode 100644 index 00000000..592e04a2 --- /dev/null +++ b/lua/custom/plugins/neotree.lua @@ -0,0 +1,12 @@ +return { + 'nvim-neo-tree/neo-tree.nvim', + version = '*', + dependencies = { + 'nvim-lua/plenary.nvim', + 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended + 'MunifTanjim/nui.nvim', + }, + config = function() + require('neo-tree').setup {} + end, +} diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/vim-helm.lua similarity index 76% rename from lua/custom/plugins/init.lua rename to lua/custom/plugins/vim-helm.lua index be0eb9d8..2e05a016 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/vim-helm.lua @@ -2,4 +2,9 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + { + 'towolf/vim-helm', + ft = 'helm', + }, +}