Skip to content

Commit

Permalink
fix!: remove all references to core.mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 13, 2024
1 parent 49e8710 commit 53429c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion lua/neorg/modules/core/defaults/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ return modules.create_meta(
"core.journal",
"core.keybinds",
"core.looking-glass",
"core.mode",
"core.neorgcmd",
"core.pivot",
"core.promo",
Expand Down
6 changes: 0 additions & 6 deletions lua/neorg/modules/core/presenter/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.setup = function()
"core.queries.native",
"core.integrations.treesitter",
"core.ui",
"core.mode",
},
}
end
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 53429c4

Please sign in to comment.