From 7db3c9c4999dc20db2e7b4773c2007504d60754e Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sun, 2 Apr 2023 20:35:42 +0200 Subject: [PATCH] Refactor nvim structure --- .config/nvim/init.lua | 5 ++++- .config/nvim/lua/{user/packer.lua => plugins.lua} | 2 +- .config/nvim/lua/{user => }/remap.lua | 0 .config/nvim/lua/{user => }/set.lua | 0 .config/nvim/lua/user/init.lua | 4 ---- 5 files changed, 5 insertions(+), 6 deletions(-) rename .config/nvim/lua/{user/packer.lua => plugins.lua} (97%) rename .config/nvim/lua/{user => }/remap.lua (100%) rename .config/nvim/lua/{user => }/set.lua (100%) delete mode 100644 .config/nvim/lua/user/init.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index ea49ffa..8376742 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1 +1,4 @@ -require("user") +require("set") +require("remap") + +require("plugins") diff --git a/.config/nvim/lua/user/packer.lua b/.config/nvim/lua/plugins.lua similarity index 97% rename from .config/nvim/lua/user/packer.lua rename to .config/nvim/lua/plugins.lua index 555a3da..ad68d89 100644 --- a/.config/nvim/lua/user/packer.lua +++ b/.config/nvim/lua/plugins.lua @@ -1,7 +1,7 @@ -- This file can be loaded by calling `lua require('plugins')` from your init.vim -- Only required if you have packer configured as `opt` -vim.cmd.packadd('packer.nvim') +vim.cmd [[packadd packer.nvim]] return require('packer').startup(function(use) -- Packer can manage itself diff --git a/.config/nvim/lua/user/remap.lua b/.config/nvim/lua/remap.lua similarity index 100% rename from .config/nvim/lua/user/remap.lua rename to .config/nvim/lua/remap.lua diff --git a/.config/nvim/lua/user/set.lua b/.config/nvim/lua/set.lua similarity index 100% rename from .config/nvim/lua/user/set.lua rename to .config/nvim/lua/set.lua diff --git a/.config/nvim/lua/user/init.lua b/.config/nvim/lua/user/init.lua deleted file mode 100644 index a8b2537..0000000 --- a/.config/nvim/lua/user/init.lua +++ /dev/null @@ -1,4 +0,0 @@ -require("user.packer") - -require("user.set") -require("user.remap")