From 65193ed014a3d24913d861c315be615045fcdefc Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 21 Apr 2023 14:31:53 +0100 Subject: [PATCH] Make neo-tree not lazy load --- config/nvim/lua/plugins/neotree.lua | 2 -- config/nvim/lua/plugins/project.lua | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config/nvim/lua/plugins/neotree.lua b/config/nvim/lua/plugins/neotree.lua index 61edcf7e..b98511b6 100644 --- a/config/nvim/lua/plugins/neotree.lua +++ b/config/nvim/lua/plugins/neotree.lua @@ -6,8 +6,6 @@ return { "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "MunifTanjim/nui.nvim", }, - cmd = "Neotree", - event = { "BufReadPre", "BufNewFile" }, config = function() vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 diff --git a/config/nvim/lua/plugins/project.lua b/config/nvim/lua/plugins/project.lua index e97cf62e..9255b7f6 100644 --- a/config/nvim/lua/plugins/project.lua +++ b/config/nvim/lua/plugins/project.lua @@ -1,5 +1,5 @@ return { "ahmedkhalf/project.nvim", - event = { "BufReadPre", "BufNewFile" }, + event = { "VimEnter", "BufReadPre", "BufNewFile" }, config = function() require("project_nvim").setup(require "config.project") end, }