Skip to content

Commit

Permalink
chore: autoformat with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro authored and github-actions[bot] committed Dec 26, 2023
1 parent 941119d commit 03a1cb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/neorg/core/modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ function modules.create_event(module, type, content, ev)
local winid = vim.fn.bufwinid(bufid)
new_event.cursor_position = vim.api.nvim_win_get_cursor(winid)
local row_1b = new_event.cursor_position[1]
new_event.line_content = vim.api.nvim_buf_get_lines(bufid, row_1b-1, row_1b, true)[1]
new_event.line_content = vim.api.nvim_buf_get_lines(bufid, row_1b - 1, row_1b, true)[1]
new_event.referrer = module.name
new_event.broadcast = true
new_event.buffer = bufid
Expand Down
8 changes: 4 additions & 4 deletions lua/neorg/modules/core/autocommands/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ module.public = {
if dont_isolate and vim.fn.exists("#Neorg#" .. autocmd .. "#*") == 0 then
vim.api.nvim_create_autocmd(autocmd, {
callback = function(ev)
_neorg_module_autocommand_triggered("core.autocommands.events."..autocmd, false, ev)
end
_neorg_module_autocommand_triggered("core.autocommands.events." .. autocmd, false, ev)
end,
})
elseif vim.fn.exists("#Neorg#" .. autocmd .. "#*.norg") == 0 then
vim.api.nvim_create_autocmd(autocmd, {
pattern = "*.norg",
callback = function(ev)
_neorg_module_autocommand_triggered("core.autocommands.events."..autocmd, true, ev)
end
_neorg_module_autocommand_triggered("core.autocommands.events." .. autocmd, true, ev)
end,
})
end
vim.cmd("augroup END")
Expand Down

0 comments on commit 03a1cb7

Please sign in to comment.