diff options
| author | 2023-07-12 23:05:18 +0200 | |
|---|---|---|
| committer | 2023-07-12 23:05:18 +0200 | |
| commit | 43eadabe5ac9d6d2d31eae0e210efa619c349fc9 (patch) | |
| tree | f66bbbe22143d132f6ae879e735b8329e962c0d3 /dot_config/nvim/lua/plugins/flash.lua | |
| parent | fish: add ^x^e binding (diff) | |
nvim: misc updates
Diffstat (limited to 'dot_config/nvim/lua/plugins/flash.lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/flash.lua | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/flash.lua b/dot_config/nvim/lua/plugins/flash.lua new file mode 100644 index 0000000..0fa0941 --- /dev/null +++ b/dot_config/nvim/lua/plugins/flash.lua @@ -0,0 +1,46 @@ +return { + 'folke/flash.nvim', + opts = {}, + keys = { + { + 's'; + mode = { 'n', 'x', 'o' }, + function() + require 'flash'.jump() + end, + desc = 'Flash', + }, + { + 'S'; + mode = { 'n', 'x', 'o' }, + function() + require 'flash'.treesitter() + end, + desc = 'Flash Treesitter', + }, + { + 'r'; + mode = 'o', + function() + require 'flash'.remote() + end, + desc = 'Remote Flash', + }, + { + 'R'; + mode = { 'o', 'x' }, + function() + require 'flash'.treesitter_search() + end, + desc = 'Flash Treesitter Search', + }, + { + '<c-s>', + mode = 'c', + function() + require 'flash'.toggle() + end, + desc = 'Toggle Flash Search', + }, + }, +} |
