mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
Add `Snacks.keymap.set()` and `Snacks.keymap.del()` as enhanced alternatives to `vim.keymap.set/del` with support for: - **Filetype-specific keymaps**: Set keymaps that only apply to buffers with specific filetypes using the `ft` option - **LSP-aware keymaps**: Set keymaps based on LSP client capabilities using the `lsp` option (leverages Snacks.util.lsp) - **Automatic application**: Keymaps are applied to existing buffers and automatically set up for new buffers via FileType autocmd Drop-in replacement API with smart defaults (silent by default). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| snacks | ||
| trouble/sources | ||