From ee6af66c8a99b26dae7e9cb3e30975e72e23ac62 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 10 Nov 2020 21:06:15 +0530 Subject: [PATCH] nvim: Do not rely on plugins.vim to load plugins We do not really need to rely on a plugins file in 'plugin' to load the packages using 'execute luafile'. Just do a 'require plugins' in init.lua. --- nvim/.config/nvim/lua/init.lua | 2 +- nvim/.config/nvim/plugin/plugins.vim | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 nvim/.config/nvim/plugin/plugins.vim diff --git a/nvim/.config/nvim/lua/init.lua b/nvim/.config/nvim/lua/init.lua index 76e2606..cd8d864 100644 --- a/nvim/.config/nvim/lua/init.lua +++ b/nvim/.config/nvim/lua/init.lua @@ -97,6 +97,6 @@ vim.api.nvim_command('set diffopt=filler,internal,algorithm:histogram,indent-heu -- Load out custom colorscheme vim.api.nvim_command('colorscheme yolokai') --- Add other lua configs or plugins +require 'plugins' require 'autocmd' require 'keymappings' diff --git a/nvim/.config/nvim/plugin/plugins.vim b/nvim/.config/nvim/plugin/plugins.vim deleted file mode 100644 index 758efd3..0000000 --- a/nvim/.config/nvim/plugin/plugins.vim +++ /dev/null @@ -1 +0,0 @@ -execute 'luafile ' . stdpath('config') . '/lua/plugins.lua'