Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haolian9/gary.nvim
https://github.com/haolian9/gary.nvim
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/haolian9/gary.nvim
- Owner: haolian9
- Created: 2024-07-05T17:47:56.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-29T09:33:32.000Z (5 months ago)
- Last Synced: 2024-08-02T18:36:56.896Z (5 months ago)
- Language: Lua
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- my-neovim-pluginlist - haolian9/gary.nvim - commit/haolian9/gary.nvim) ![](https://img.shields.io/github/commit-activity/y/haolian9/gary.nvim) (Editing support / matchadd)
README
show trails while moving cursor, within a window or across windows
## design choices, limits
* works when cursor moving within one single window
* works when cursor moving across windows, yet there would be break points
* since nvim_buf_set_extmark doesnt supports per-window-based mark, fn.matchadd* must be used
* no fullscreen floatwin + winblend, because i dont use &termguicolor
* no massive ephemeral floatwins, no pre-alloc floatwins
* should be ok with multi-bytes strings
* not supposed to work well with , which may be 2/4/8-width## status
* just works, imperfectly
* yet many untested edge cases: signcolumn, numbercolumn, tabline, window-statusline, window-border, winbar ...
* since it requires a patched vim.fn.getmousepos, it's not supposed to be used publicly## credits
* i shamelessly stole the basis impl from [vim-ranbow-trails](https://github.com/sedm0784/vim-rainbow-trails)
* [the bresenham algo](https://github.com/kikito/bresenham.lua)