AstroNvim / astrocommunity

A community repository of common plugin specifications
GNU General Public License v3.0
1.16k stars 236 forks source link

feat(neotest): add watch keybindings #1185

Closed cristobalgvera closed 3 weeks ago

cristobalgvera commented 1 month ago

📑 Description

Add mappings to simplify the usage of watch-related commands when using neotest.

It also refactor the keybindings to follow current standards using an opts function instead of a table.

ℹ Additional Information

The API for the usage of neotest.watch.stop() is not well defined in terms of the type information for the usage.

This creates the necessity to use @diagnostic disable-next-line: missing-parameter.

For a closer look, see https://github.com/nvim-neotest/neotest/blob/master/doc/neotest.txt#L626

github-actions[bot] commented 1 month ago

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

cristobalgvera commented 4 weeks ago

I'm thinking to refactor this after the PR approval, in order to follow the standard process to map keybingings used in here

Uzaaft commented 4 weeks ago

I'm thinking to refactor this after the PR approval, in order to follow the standard process to map keybingings used in here

Refactor first please. :)