From e1907f1db066666fcfe3764bc523684b37a82726 Mon Sep 17 00:00:00 2001 From: vhyrro Date: Wed, 10 Jul 2024 15:01:14 +0200 Subject: [PATCH] fix!: remove all references to `core.mode` --- lua/neorg/modules/core/defaults/module.lua | 1 - lua/neorg/modules/core/presenter/module.lua | 6 ------ 2 files changed, 7 deletions(-) diff --git a/lua/neorg/modules/core/defaults/module.lua b/lua/neorg/modules/core/defaults/module.lua index 3429630be..6b7c010f0 100644 --- a/lua/neorg/modules/core/defaults/module.lua +++ b/lua/neorg/modules/core/defaults/module.lua @@ -38,7 +38,6 @@ return modules.create_meta( "core.journal", "core.keybinds", "core.looking-glass", - "core.mode", "core.neorgcmd", "core.pivot", "core.promo", diff --git a/lua/neorg/modules/core/presenter/module.lua b/lua/neorg/modules/core/presenter/module.lua index 76715cb47..8fe6a2abe 100644 --- a/lua/neorg/modules/core/presenter/module.lua +++ b/lua/neorg/modules/core/presenter/module.lua @@ -28,7 +28,6 @@ module.setup = function() "core.queries.native", "core.integrations.treesitter", "core.ui", - "core.mode", }, } end @@ -171,7 +170,6 @@ module.public = { api.nvim_buf_set_option(buffer, "modifiable", false) - module.required["core.mode"].set_mode("presenter") module.private.buf = buffer module.private.data = results end, @@ -220,10 +218,6 @@ module.public = { return end - -- Go back to previous mode - local previous_mode = module.required["core.mode"].get_previous_mode() - module.required["core.mode"].set_mode(previous_mode) - if module.config.public.zen_mode == "truezen" and modules.is_module_loaded("core.integrations.truezen") then modules.get_module("core.integrations.truezen").toggle_ataraxis() elseif