Skip to content

breaking change: recent commit changes default behavior of treesitter-context #620

@vegerot

Description

@vegerot

Description

4cc5502 changes the default behavior of treesitter-context to be disabled by default.

Prior to this commit, just installing the plugin would make context lines appear in the editor. After that commit, you need to run require("treesitter-context").setup{} to see anything.

This may have been intended, if so that's okay. Otherwise I'm just making you aware 🙂 . I was confused why for the last few days my context stopped working, but didn't dig into it until today 😁. As long as it's intentional I'm okay (but others may not be).

Neovim version

v0.12.0-dev-2591+g61663c3cfb

Expected behavior

Should see context, because that's how it used to work

Actual behavior

Don't see context, even though I used to be able to

Minimal config

(you should have an empty config file)

Steps to reproduce

  1. Delete init.vim
  2. clone treesitter-context to ~/.local/share/nvim/site/pack/treesitter/start/nvim-treesitter-context
  3. checkout ebee603
  4. Open a long file with functions
  5. ASSERT you should see context
  6. checkout 4cc5502
  7. Repeat step 4
  8. ASSERT you don't see any context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions