Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nyngwang/tetris-paste.lua
https://github.com/nyngwang/tetris-paste.lua
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nyngwang/tetris-paste.lua
- Owner: nyngwang
- License: mit
- Created: 2022-02-02T00:26:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-12T22:06:04.000Z (almost 3 years ago)
- Last Synced: 2024-05-11T00:36:01.073Z (6 months ago)
- Language: Lua
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Vim TETRIS Paste in Lua
====## Ref.
[Rasukarusan/vim-tetris-paste](https://github.com/Rasukarusan/vim-tetris-paste)
with some enhencements, including:- inline-paste
- delay-tuning
- correct calculation on line-number / git-sign toggled
- correct calculation on multiple v-split## Install
```lua
use {
'nyngwang/tetris-paste.lua',
config = function ()
require('tetris-paste').setup {
delay_ms = 10 -- default
}
end
}
vim.keymap.set('n', 'p', function() vim.cmd('TetrisPaste') end, {nowait=true, noremap=true, silent=true})
vim.cmd[[ hi TetrisBlock guifg=#ffffff guibg=#dd6900 ]]
```