diff options
| author | jdhao <jdhao@hotmail.com> | 2021-10-22 22:06:53 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-10-22 22:06:53 +0800 |
| commit | f528aa216c10788c11d2b894b3295a50557a9b0a (patch) | |
| tree | 246b55169edfca227e93343c81353d0bb717fe82 | |
| parent | 8ff1e683aa6c0af5f6c0f62072f1fac03dee6f5d (diff) | |
change how lua conf is invoked
| -rw-r--r-- | core/plugins.vim | 6 | ||||
| -rw-r--r-- | lua/entrance.lua | 2 | ||||
| -rw-r--r-- | lua/lua-init.lua | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index a43bdb9..487bacd 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -1,7 +1,7 @@ scriptencoding utf-8 -" Plugin installation -lua require 'plugins' +" Plugin specification and lua stuff +lua require('lua-init') "{ Plugin settings "{{ Vim-plug settings @@ -16,8 +16,6 @@ call utils#Cabbrev('ps', 'PackerSync') "}} "{{ Auto-completion related -lua require('entrance') - """""""""""""""""""""""""UltiSnips settings""""""""""""""""""" " Trigger configuration. Do not use <tab> if you use YouCompleteMe let g:UltiSnipsExpandTrigger='<c-j>' diff --git a/lua/entrance.lua b/lua/entrance.lua deleted file mode 100644 index f38cf27..0000000 --- a/lua/entrance.lua +++ /dev/null @@ -1,2 +0,0 @@ --- Some utility stuff -require 'utils' diff --git a/lua/lua-init.lua b/lua/lua-init.lua new file mode 100644 index 0000000..f68a865 --- /dev/null +++ b/lua/lua-init.lua @@ -0,0 +1,6 @@ +-- Some utility stuff +require 'utils' + +-- plugin installation +-- vim.defer_fn(function() require 'plugins' end, 2000) +require 'plugins' |
