forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: No easy way to hook into LSP request/response handlers. (No mention of "before" or "after" in `:help lsp`...) Solution: Introduce vim.on_fun(), a generic way to "hook into" any function before/after it is called. Example: vim.on_fun(vim.lsp.handlers, 'textDocument/definition', function() vim.print('before, yay') end) Fixes neovim#20568 Fixes neovim#22075 Fixes neovim#22323 Related: neovim#13977
- Loading branch information
Showing
16 changed files
with
634 additions
and
143 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
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
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
Oops, something went wrong.