From 875831ed541affd8b98c20f4df4b1567c9083c64 Mon Sep 17 00:00:00 2001 From: ChrisHilborne Date: Sat, 21 Oct 2023 20:40:35 +0200 Subject: [PATCH] Fixed organization --- init.lua | 4 ++-- lua/{ => custom}/plugins/autoformat.lua | 0 lua/{ => custom}/plugins/debug.lua | 0 lua/{ => custom}/plugins/nvim-tree.lua | 0 lua/{ => custom}/plugins/themes.lua | 0 lua/custom/plugins/util.lua | 17 +++++++++++++++++ lua/plugins/util.lua | 4 ---- 7 files changed, 19 insertions(+), 6 deletions(-) rename lua/{ => custom}/plugins/autoformat.lua (100%) rename lua/{ => custom}/plugins/debug.lua (100%) rename lua/{ => custom}/plugins/nvim-tree.lua (100%) rename lua/{ => custom}/plugins/themes.lua (100%) create mode 100644 lua/custom/plugins/util.lua delete mode 100644 lua/plugins/util.lua diff --git a/init.lua b/init.lua index 60f03c6e..6cbcdfa7 100644 --- a/init.lua +++ b/init.lua @@ -195,7 +195,7 @@ require('lazy').setup({ -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins - { import = 'plugins' }, + { import = 'custom/plugins' }, }, {}) -- [[ Theme ]] @@ -206,7 +206,7 @@ vim.cmd [[colorscheme tokyonight]] -- NOTE: You can change these options as you wish! -- Set highlight on search -vim.o.hlsearch = false +vim.o.hlsearch = true -- Make line numbers default vim.wo.number = true diff --git a/lua/plugins/autoformat.lua b/lua/custom/plugins/autoformat.lua similarity index 100% rename from lua/plugins/autoformat.lua rename to lua/custom/plugins/autoformat.lua diff --git a/lua/plugins/debug.lua b/lua/custom/plugins/debug.lua similarity index 100% rename from lua/plugins/debug.lua rename to lua/custom/plugins/debug.lua diff --git a/lua/plugins/nvim-tree.lua b/lua/custom/plugins/nvim-tree.lua similarity index 100% rename from lua/plugins/nvim-tree.lua rename to lua/custom/plugins/nvim-tree.lua diff --git a/lua/plugins/themes.lua b/lua/custom/plugins/themes.lua similarity index 100% rename from lua/plugins/themes.lua rename to lua/custom/plugins/themes.lua diff --git a/lua/custom/plugins/util.lua b/lua/custom/plugins/util.lua new file mode 100644 index 00000000..60d84ed8 --- /dev/null +++ b/lua/custom/plugins/util.lua @@ -0,0 +1,17 @@ +return { + + -- [[Autopairs]] + -- doubles up common surrounding characters + { 'windwp/nvim-autopairs', event = "InsertEnter", opts = {} }, + + -- [[Comment]] + -- comments code with 'gcc' & 'gbc' + { + 'numToStr/Comment.nvim', + opts = { + -- add any options here + }, + lazy = false, + }, + -- { 'nvim-ts-autotag', opts = {} }, +} diff --git a/lua/plugins/util.lua b/lua/plugins/util.lua deleted file mode 100644 index dfd4423b..00000000 --- a/lua/plugins/util.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - { 'windwp/nvim-autopairs', event = "InsertEnter", opts = {} }, - -- { 'nvim-ts-autotag', opts = {} }, -}