From cb64b0ef44c97f3370357af79404675feb3e7f4d Mon Sep 17 00:00:00 2001 From: siduck76 Date: Fri, 2 Apr 2021 11:18:34 +0530 Subject: [PATCH] avoid using default plugin names for plugin configs --- init.lua | 10 +++++----- lua/{nvim-compe => compe}/lua.lua | 0 lua/{web-devicons => file-icons}/lua.lua | 0 lua/{nvim-lspconfig => lspconfig}/lua.lua | 0 lua/{utils => misc-utils}/lua.lua | 0 lua/pluginsList/lua.lua | 2 +- lua/{telescope-nvim => telescope}/lua.lua | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename lua/{nvim-compe => compe}/lua.lua (100%) rename lua/{web-devicons => file-icons}/lua.lua (100%) rename lua/{nvim-lspconfig => lspconfig}/lua.lua (100%) rename lua/{utils => misc-utils}/lua.lua (100%) rename lua/{telescope-nvim => telescope}/lua.lua (100%) diff --git a/init.lua b/init.lua index 790183a..8035737 100644 --- a/init.lua +++ b/init.lua @@ -1,19 +1,19 @@ -- load all plugins require("pluginsList.lua") -require("web-devicons.lua") +require("file-icons.lua") -require("utils.lua") +require("misc-utils.lua") require("nvimTree.lua") require("bufferline.lua") require("statusline.lua") -require("telescope-nvim.lua") +require("telescope.lua") require("gitsigns.lua") require "colorizer".setup() -- lsp -require("nvim-lspconfig.lua") -require("nvim-compe.lua") +require("lspconfig.lua") +require("compe.lua") local cmd = vim.cmd local g = vim.g diff --git a/lua/nvim-compe/lua.lua b/lua/compe/lua.lua similarity index 100% rename from lua/nvim-compe/lua.lua rename to lua/compe/lua.lua diff --git a/lua/web-devicons/lua.lua b/lua/file-icons/lua.lua similarity index 100% rename from lua/web-devicons/lua.lua rename to lua/file-icons/lua.lua diff --git a/lua/nvim-lspconfig/lua.lua b/lua/lspconfig/lua.lua similarity index 100% rename from lua/nvim-lspconfig/lua.lua rename to lua/lspconfig/lua.lua diff --git a/lua/utils/lua.lua b/lua/misc-utils/lua.lua similarity index 100% rename from lua/utils/lua.lua rename to lua/misc-utils/lua.lua diff --git a/lua/pluginsList/lua.lua b/lua/pluginsList/lua.lua index e400346..1758e23 100644 --- a/lua/pluginsList/lua.lua +++ b/lua/pluginsList/lua.lua @@ -1,7 +1,7 @@ -- check if packer is installed (~/local/share/nvim/site/pack) local packer_exists = pcall(vim.cmd, [[packadd packer.nvim]]) --- add { } , when the plugin needs a different branch, loading the plugin with certain commands +-- using { } when using a different branch of the plugin or loading the plugin with certain commands return require("packer").startup( function() use {"wbthomason/packer.nvim", opt = true} diff --git a/lua/telescope-nvim/lua.lua b/lua/telescope/lua.lua similarity index 100% rename from lua/telescope-nvim/lua.lua rename to lua/telescope/lua.lua