Skip to content
Merged
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions TIPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,14 @@ known issues and workarounds:
-- The group name is an internal detail of nvim-treesitter-context
-- and may differ across versions; verify it matches your install
-- or omit it to fire all BufReadPost handlers.
-- `modeline = false` prevents `nvim_exec_autocmds`'s default
-- post-autocmd modeline pass from running `:set` commands (e.g.
-- `fileencoding`) against the diffview buffer, which is
-- non-modifiable and would raise E21.
pcall(vim.api.nvim_exec_autocmds, "BufReadPost", {
buffer = bufnr,
group = "treesitter_context_update",
modeline = false,
})
end,
view_closed = function()
Expand Down
Loading