diff options
| author | heimer16 <[email protected]> | 2021-04-04 15:25:46 -0600 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-04 17:25:46 -0400 | 
| commit | 655fe84c49b0cd7a68855187c3a060b98a00a6cf (patch) | |
| tree | 3eedf34afcdfa407120e69812857e34365e3499d | |
| parent | dd7043485710e3c3257a7badb8b726c2ac09edbe (diff) | |
load plugin configs via packer (#221)
| -rw-r--r-- | init.lua | 2 | ||||
| -rw-r--r-- | lua/plugins.lua | 5 | 
2 files changed, 5 insertions, 2 deletions
| @@ -8,7 +8,7 @@ require('nv-autocommands')  require('settings')  require('keymappings')  require('colorscheme') -require('nv-galaxyline') +-- require('nv-galaxyline')  -- Plugins  require('nv-compe') diff --git a/lua/plugins.lua b/lua/plugins.lua index db94d660..ed6adc8d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -9,6 +9,8 @@ if fn.empty(fn.glob(install_path)) > 0 then      execute 'packadd packer.nvim'  end +local my = function(file) require(file) end +  vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua  -- require('packer').init({display = {non_interactive = true}}) @@ -55,7 +57,8 @@ return require('packer').startup(function(use)      use 'ryanoasis/vim-devicons'      -- Status Line and Bufferline -    use 'glepnir/galaxyline.nvim' +    use { 'glepnir/galaxyline.nvim', config = my('nv-galaxyline') } +    -- use { 'glepnir/galaxyline.nvim', config = function() require'nv-galaxyline' end } -- inline fn alternative      use 'romgrk/barbar.nvim'      -- Telescope | 
