diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-12 23:33:16 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-12 23:33:16 +0200 |
commit | 78d2f88b3207f00cac1d5cbe21e00286dec417e8 (patch) | |
tree | 7dc06adbc96bf2cbc7627e5f83a1a5fe9783aa97 /.config/nvim/after/plugin/telescope.lua | |
parent | 30543e85eeae846b83146279e18d00da6c8473a4 (diff) |
nvim: Move ‘remap()’ to mango.lib
Diffstat (limited to '.config/nvim/after/plugin/telescope.lua')
-rw-r--r-- | .config/nvim/after/plugin/telescope.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/after/plugin/telescope.lua b/.config/nvim/after/plugin/telescope.lua index a9d9225..fa355e1 100644 --- a/.config/nvim/after/plugin/telescope.lua +++ b/.config/nvim/after/plugin/telescope.lua @@ -1,8 +1,9 @@ local builtin = require('telescope.builtin') +local lib = require('mango.lib') --vim.keymap.set('n', '<leader>pf', builtin.git_files, {}) -vim.keymap.set('n', '<leader>pf', builtin.find_files, {}) -vim.keymap.set('n', '<leader>ps', function() +lib.remap('n', '<leader>pf', builtin.find_files) +lib.remap('n', '<leader>ps', function() builtin.grep_string({ search = vim.fn.input('Grep > ') }) end) |