Add system default app integration to Neovim

- Add <leader>o keymap to open current file with system default application
- Uses ':silent \!open %' to prevent command output clutter
- Update README with new keymap documentation
- Enables quick preview of markdown, images, PDFs in native apps

Enhances workflow by bridging Neovim editing with system-level file viewing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-26 20:28:18 +02:00
parent bdbf7a090c
commit fe23254558
2 changed files with 9 additions and 0 deletions

View file

@ -132,6 +132,14 @@
options = { desc = "Replace selection with system clipboard"; };
}
# System integration
{
mode = "n";
key = "<leader>o";
action = ":silent !open %<CR>";
options = { desc = "Open file with system default app"; };
}
# Git keymaps (vim-fugitive)
{
mode = "n";