diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-28 23:32:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 23:32:48 +0800 |
| commit | a8db734e750edd909255790aed8e2c108269ab83 (patch) | |
| tree | 1ea5f61bb6e93c6de1bc55c5d3ae8665331bfe8e /lua | |
| parent | f63152f79b8605a1fe040777caee30de49c9773c (diff) | |
| parent | 4026baef19ba0d2320704fdbf876224da7223d24 (diff) | |
Merge pull request #120 from jdhao/firenvim
update conf related to firenvim
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index f09d6b9..c4f7dc3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -28,6 +28,11 @@ vim.cmd("packadd packer.nvim") local packer = require("packer") local packer_util = require("packer.util") +-- check if firenvim is active +local firenvim_not_active = function() + return not vim.g.started_by_firenvim +end + packer.startup { function(use) -- it is recommended to put impatient.nvim before any other plugins @@ -130,13 +135,19 @@ packer.startup { use { "nvim-lualine/lualine.nvim", event = "VimEnter", + cond = firenvim_not_active, config = [[require('config.statusline')]], } - use { "akinsho/bufferline.nvim", event = "VimEnter", config = [[require('config.bufferline')]] } + use { "akinsho/bufferline.nvim", event = "VimEnter", + cond = firenvim_not_active, + config = [[require('config.bufferline')]] } -- fancy start screen - use { "glepnir/dashboard-nvim", event = "VimEnter", config = [[require('config.dashboard-nvim')]] } + use { "glepnir/dashboard-nvim", event = "VimEnter", + cond = firenvim_not_active, + config = [[require('config.dashboard-nvim')]] + } use { "lukas-reineke/indent-blankline.nvim", |
