mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-31 16:14:34 +02:00
load plugin configs via packer (#221)
This commit is contained in:
parent
dd70434857
commit
655fe84c49
2 changed files with 5 additions and 2 deletions
2
init.lua
2
init.lua
|
@ -8,7 +8,7 @@ require('nv-autocommands')
|
||||||
require('settings')
|
require('settings')
|
||||||
require('keymappings')
|
require('keymappings')
|
||||||
require('colorscheme')
|
require('colorscheme')
|
||||||
require('nv-galaxyline')
|
-- require('nv-galaxyline')
|
||||||
|
|
||||||
-- Plugins
|
-- Plugins
|
||||||
require('nv-compe')
|
require('nv-compe')
|
||||||
|
|
|
@ -9,6 +9,8 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
execute 'packadd packer.nvim'
|
execute 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local my = function(file) require(file) end
|
||||||
|
|
||||||
vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
|
vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
|
||||||
|
|
||||||
-- require('packer').init({display = {non_interactive = true}})
|
-- require('packer').init({display = {non_interactive = true}})
|
||||||
|
@ -55,7 +57,8 @@ return require('packer').startup(function(use)
|
||||||
use 'ryanoasis/vim-devicons'
|
use 'ryanoasis/vim-devicons'
|
||||||
|
|
||||||
-- Status Line and Bufferline
|
-- 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'
|
use 'romgrk/barbar.nvim'
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue