Skip to content

docs(TIPS): pass modeline = false in the treesitter-context hook - #294

Merged
dlyongemallo merged 1 commit into
mainfrom
modeline_tips
Jul 13, 2026
Merged

docs(TIPS): pass modeline = false in the treesitter-context hook#294
dlyongemallo merged 1 commit into
mainfrom
modeline_tips

Conversation

@dlyongemallo

Copy link
Copy Markdown
Owner

nvim_exec_autocmds processes modelines after firing the requested autocmds by default. On a diffview buffer (non-modifiable), a modeline that sets fileencoding raises E21, aborting the diff open.

`nvim_exec_autocmds` processes modelines after firing the requested
autocmds by default. On a diffview buffer (non-modifiable), a modeline
that sets `fileencoding` raises E21, aborting the diff open.
@dlyongemallo
dlyongemallo merged commit fd688b7 into main Jul 13, 2026
7 of 8 checks passed
@dlyongemallo
dlyongemallo deleted the modeline_tips branch July 13, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant