Skip to content

Commit

Permalink
fix(concealer,indent): "require'neorg'" missing in v:lua call (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
taeruh authored Aug 4, 2023
1 parent 1c41592 commit 1d3b425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,11 @@ local function handle_init_event(event)
}
vim.api.nvim_set_option_value("foldmethod", "expr", opts)
vim.api.nvim_set_option_value("foldexpr", "nvim_treesitter#foldexpr()", opts)
vim.api.nvim_set_option_value("foldtext", "v:lua.modules.get_module('core.concealer').foldtext()", opts)
vim.api.nvim_set_option_value(
"foldtext",
"v:lua.require'neorg'.modules.get_module('core.concealer').foldtext()",
opts
)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/esupports/indent/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ module.on_event = function(event)
vim.api.nvim_buf_set_option(
event.buffer,
"indentexpr",
("v:lua.modules.get_module('core.esupports.indent').indentexpr(%d)"):format(event.buffer)
("v:lua.require'neorg'.modules.get_module('core.esupports.indent').indentexpr(%d)"):format(event.buffer)
)

local indentkeys = "o,O,*<M-o>,*<M-O>"
Expand Down

0 comments on commit 1d3b425

Please sign in to comment.