Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nyngwang/tetris-paste.lua


https://github.com/nyngwang/tetris-paste.lua

Last synced: 4 months ago
JSON representation

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 ]]
```