diff options
| author | jdhao <jdhao@hotmail.com> | 2022-08-28 12:43:50 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-08-28 12:43:50 +0800 |
| commit | b41998828df5fb601c0e068b00e4794f1ec95294 (patch) | |
| tree | b7440b6f2ecab0f601f13d03a7589dcb0413cb71 | |
| parent | 3670a19e51815544437613f0698df0e291be4264 (diff) | |
refactor a bit
1. change theme to colorscheme
2. update plugin load logic
| -rw-r--r-- | core/colorschemes.lua (renamed from core/themes.lua) | 0 | ||||
| -rw-r--r-- | core/plugins.vim | 2 | ||||
| -rw-r--r-- | init.lua | 12 | ||||
| -rw-r--r-- | lua/lua-init.lua | 5 |
4 files changed, 7 insertions, 12 deletions
diff --git a/core/themes.lua b/core/colorschemes.lua index 1a42828..1a42828 100644 --- a/core/themes.lua +++ b/core/colorschemes.lua diff --git a/core/plugins.vim b/core/plugins.vim index fd4a6a8..1a1cd65 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -1,7 +1,7 @@ scriptencoding utf-8 " Plugin specification and lua stuff -lua require('lua-init') +lua require('plugins') " Use short names for common plugin manager commands to simplify typing. " To use these shortcuts: first activate command line with `:`, then input the @@ -21,12 +21,12 @@ if nvim_ver ~= expected_ver then end local core_conf_files = { - "globals.vim", - "options.vim", - "autocommands.vim", - "mappings.vim", - "plugins.vim", - "themes.lua", + "globals.vim", -- some global settings + "options.vim", -- setting options in nvim + "autocommands.vim", -- various autocommands + "mappings.vim", -- all the user-defined mappings + "plugins.vim", -- all the plugins installed and their configurations + "colorschemes.lua", -- colorscheme settings } -- source all the core config files diff --git a/lua/lua-init.lua b/lua/lua-init.lua deleted file mode 100644 index c72cbb2..0000000 --- a/lua/lua-init.lua +++ /dev/null @@ -1,5 +0,0 @@ --- Some utility stuff -require 'utils' - --- plugin installation -require 'plugins' |
