Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(concealer)!: rewrite for performance and stability #834

Merged
merged 36 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
fa0c5ef
minor refactorings
champignoom May 3, 2023
5a387c7
cleanup concealer
champignoom May 4, 2023
84b8be4
cleanup concealer
champignoom May 4, 2023
bcf44b8
cleanup concealer
champignoom May 4, 2023
2515b2e
cleanup concealer
champignoom May 4, 2023
32e963e
cleanup concealer
champignoom May 4, 2023
ba257aa
cleanup concealer
champignoom May 4, 2023
a2617d8
cleanup concealer
champignoom May 4, 2023
450de0f
minor fix for codeblock marks
champignoom May 4, 2023
6e9740e
cleanup concealer
champignoom May 5, 2023
bbd82ac
save
champignoom May 6, 2023
0e3f852
save
champignoom May 6, 2023
588a576
save
champignoom May 7, 2023
4f82a79
save
champignoom May 7, 2023
df74e76
save
champignoom May 16, 2023
1c36b9b
save config refactored
champignoom May 19, 2023
144960e
save
champignoom May 19, 2023
4508a79
basically done
champignoom May 19, 2023
a2efd30
Merge branch 'main' into patch-1
champignoom May 19, 2023
80c6505
remove garbage
champignoom May 19, 2023
4127bf2
minor fix for codeblock marks
champignoom May 19, 2023
881996f
fix preset icons
champignoom May 19, 2023
8305cfb
fix concealing on code block
champignoom May 21, 2023
961c157
fix concealing on code block
champignoom May 21, 2023
d1e2f6a
workaround neovim winid-bufid desync
champignoom May 23, 2023
fe601e8
bufread->bufreadpost, listen bufnewfile
champignoom May 24, 2023
3f1197a
redraw when scrolling
champignoom May 24, 2023
5764085
more docs
champignoom May 26, 2023
d443e8e
Merge branch 'main' into patch-1
champignoom May 26, 2023
c53c6c5
only render buffer attached to a window
champignoom May 26, 2023
0be67e7
fix(concealer): incorrect concealing of code blocks with partially co…
vhyrro May 28, 2023
2c97141
fix(concealer): fix range calculation, fix weak delimiter
champignoom May 29, 2023
98d9699
Merge branch 'main' into patch-1
champignoom May 30, 2023
45d7875
refactor(concealer): fix luacheck warnings
vhyrro May 30, 2023
76c60b2
chore: format with stylua
vhyrro May 30, 2023
b3ede9f
docs: update top level comment
vhyrro May 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/neorg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function neorg.setup(config)
-- Then boot up the environment
neorg.org_file_entered(false)
else
-- Else listen for a BufRead event and fire up the Neorg environment
-- Else listen for a BufReadPost event and fire up the Neorg environment
vim.cmd([[
autocmd BufAdd *.norg ++once :lua require('neorg').org_file_entered(false)
command! -nargs=* NeorgStart delcommand NeorgStart | lua require('neorg').org_file_entered(true, <q-args>)
Expand Down
8 changes: 5 additions & 3 deletions lua/neorg/modules/core/autocommands/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ local module = neorg.modules.create("core.autocommands")
---@param name string #The name of the autocommand that was just triggered
---@param triggered_from_norg boolean #If true, that means we have received this event as part of a *.norg autocommand
function _neorg_module_autocommand_triggered(name, triggered_from_norg)
neorg.events.broadcast_event(neorg.events.create(module, name, { norg = triggered_from_norg }))
local event = neorg.events.create(module, name, { norg = triggered_from_norg })
assert(event)
neorg.events.broadcast_event(event)
end

-- A convenience wrapper around neorg.events.define_event
Expand Down Expand Up @@ -108,7 +110,7 @@ module.events.subscribed = {
bufmodifiedset = false,
bufnew = false,
bufnewfile = false,
bufread = false,
bufreadpost = false,
bufreadcmd = false,
bufreadpre = false,
bufunload = false,
Expand Down Expand Up @@ -226,7 +228,7 @@ module.events.defined = {
bufmodifiedset = module.autocmd_base("bufmodifiedset"),
bufnew = module.autocmd_base("bufnew"),
bufnewfile = module.autocmd_base("bufnewfile"),
bufread = module.autocmd_base("bufread"),
bufreadpost = module.autocmd_base("bufreadpost"),
bufreadcmd = module.autocmd_base("bufreadcmd"),
bufreadpre = module.autocmd_base("bufreadpre"),
bufunload = module.autocmd_base("bufunload"),
Expand Down
Loading