Tweak startup conditions

This commit is contained in:
Evie Litherland-Smith 2023-04-24 11:41:54 +01:00
parent 4df98c9468
commit 1f656c12ae
3 changed files with 7 additions and 4 deletions

View file

@ -3,6 +3,7 @@ return {
dependencies = "nvim-tree/nvim-web-devicons",
event = { "BufReadPre", "BufNewFile" },
init = function() vim.g.barbar_auto_setup = false end,
-- opts = require "config.barbar",
config = true,
opts = require "config.barbar",
version = "^1.0.0", -- optional: only update when a new 1.x version is released
}

View file

@ -6,10 +6,12 @@ return {
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
},
config = function()
cmd = "NeoTree",
event = { "BufEnter" },
init = function()
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.neo_tree_remove_legacy_commands = 1
require("neo-tree").setup(require "config.neotree")
end,
config = function() require("neo-tree").setup(require "config.neotree") end,
}

View file

@ -1,5 +1,5 @@
return {
"ahmedkhalf/project.nvim",
event = { "VimEnter", "BufReadPre", "BufNewFile" },
event = { "BufReadPre", "BufNewFile" },
config = function() require("project_nvim").setup(require "config.project") end,
}