trunk-io / neovim-trunk

The official Trunk Check Plugin for Neovim
https://docs.trunk.io/check/ide-integration/neovim-plugin
MIT License
21 stars 3 forks source link

Add commands for custom code action callbacks #15

Closed TylerJang27 closed 7 months ago

TylerJang27 commented 7 months ago

In recent CLI versions, LSP will suggest code actions for enabling/disabling linters and opening the Trunk config. By registering commands to the commands table, we can provide callbacks for these.

Atm we don't have a non-ANSI coloring mode so we strip the output again with sed.

This approach will likely not be feasible for emacs since if the commands don't exist it will attempt to execute them on the command line IIRC.

TylerJang27 commented 7 months ago

@puzzler7 fyi would like to make a patch release with this next week