mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
Add `Snacks.util.lsp.on()` to register handlers that fire when LSP clients attach with specific capabilities. Supports filtering by: - LSP method/capability - Client name - Buffer ID - Any vim.lsp.get_clients() filter Features: - Handles both LspAttach and client/registerCapability events - Ensures handlers only fire once per buffer - Lazy-loaded via Snacks.util metatable This provides a foundation for LSP-aware features like conditional keymaps. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| snacks | ||
| trouble/sources | ||