From 78d2f88b3207f00cac1d5cbe21e00286dec417e8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 12 Sep 2023 23:33:16 +0200 Subject: nvim: Move ‘remap()’ to mango.lib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/after/plugin/telescope.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config/nvim/after/plugin/telescope.lua') 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', 'pf', builtin.git_files, {}) -vim.keymap.set('n', 'pf', builtin.find_files, {}) -vim.keymap.set('n', 'ps', function() +lib.remap('n', 'pf', builtin.find_files) +lib.remap('n', 'ps', function() builtin.grep_string({ search = vim.fn.input('Grep > ') }) end) -- cgit v1.2.3