Skip to content

Docs inconsistent with default config for treesitter textobjects #106

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

Closed
3 tasks done
acarl005 opened this issue Sep 1, 2023 · 3 comments
Closed
3 tasks done

Docs inconsistent with default config for treesitter textobjects #106

acarl005 opened this issue Sep 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@acarl005
Copy link

acarl005 commented Sep 1, 2023

Checklist

  • Using a stable version of Neovim (i.e. not neovim nightly)
  • :AstroUpdate
  • Restarted AstroNvim

Operating system/version

N/A

Terminal/GUI

N/A

AstroNvim Health

N/A

Describe the bug

The documentation for the default config of treesitter textobjects, says it includes an object for classes:

goto_next_start = {
    ["]k"] = { query = "@block.outer", desc = "Next block start" },
    ["]c"] = { query = "@class.outer", desc = "Next class start" },
    ["]f"] = { query = "@function.outer", desc = "Next function start" },
    ["]a"] = { query = "@parameter.outer", desc = "Next parameter start" },
},

However, this appears to be missing from the actual config:

          goto_next_start = {
            ["]k"] = { query = "@block.outer", desc = "Next block start" },
            ["]f"] = { query = "@function.outer", desc = "Next function start" },
            ["]a"] = { query = "@parameter.inner", desc = "Next argument start" },
          },

Either the docs or the code need to be updated.

Steps to Reproduce

Click the links in description to see

Expected behavior

Docs should match the code

Screenshots

No response

Additional Context

No response

@acarl005 acarl005 added the bug Something isn't working label Sep 1, 2023
@mehalter mehalter transferred this issue from AstroNvim/AstroNvim Sep 1, 2023
@mehalter
Copy link
Member

mehalter commented Sep 1, 2023

Moved to the correct repo. Thanks for reporting, I will take a look at this in the coming days and get the docs updated!

@acarl005
Copy link
Author

acarl005 commented Sep 1, 2023

Oh also I believe the characters in the goto_next_end section need to be capitalized as well.

@mehalter
Copy link
Member

mehalter commented Sep 1, 2023

Updated in the treesitter config in the latest push!

@mehalter mehalter closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants