From 03a1cb715a4c1cb9821211b8a95681880288d7a1 Mon Sep 17 00:00:00 2001 From: vhyrro Date: Tue, 26 Dec 2023 15:00:11 +0000 Subject: [PATCH] chore: autoformat with stylua --- lua/neorg/core/modules.lua | 2 +- lua/neorg/modules/core/autocommands/module.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/neorg/core/modules.lua b/lua/neorg/core/modules.lua index 1660250b6..39e571681 100644 --- a/lua/neorg/core/modules.lua +++ b/lua/neorg/core/modules.lua @@ -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 diff --git a/lua/neorg/modules/core/autocommands/module.lua b/lua/neorg/modules/core/autocommands/module.lua index 962d200e7..5cae451de 100644 --- a/lua/neorg/modules/core/autocommands/module.lua +++ b/lua/neorg/modules/core/autocommands/module.lua @@ -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")