-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add commands for custom code action callbacks (#15)
In recent CLI versions, LSP will suggest code actions for enabling/disabling linters and opening the Trunk config. By registering commands to the [`commands`](https://neovim.io/doc/user/lsp.html#vim.lsp.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.
- Loading branch information
1 parent
228ba33
commit 1a14c42
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
plugins | ||
user_trunk.yaml | ||
user.yaml | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters