From 10f809784d9d8a8eba5937ff56fe9ab8807a6832 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 24 Jan 2023 08:39:41 +0100 Subject: [PATCH] feat: added deactivate for neo-tree and noice --- lua/lazyvim/plugins/editor.lua | 3 +++ lua/lazyvim/plugins/ui.lua | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 65ae567e..3d198e41 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -18,6 +18,9 @@ return { { "e", "fe", desc = "Explorer NeoTree (root dir)", remap = true }, { "E", "fE", desc = "Explorer NeoTree (cwd)", remap = true }, }, + deactivate = function() + vim.cmd([[Neotree close]]) + end, init = function() vim.g.neo_tree_remove_legacy_commands = 1 if vim.fn.argc() == 1 then diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index 2f0b9fe4..2f38ec27 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -188,6 +188,9 @@ return { { "folke/noice.nvim", event = "VeryLazy", + deactivate = function() + require("noice").disable() + end, opts = { lsp = { override = {