From d9d666e45b0a87f8d9fdaca49cffdbec3bcc5ac0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 17 Aug 2022 00:20:15 +0200 Subject: [PATCH] nvim: add keymapping for files in current dir --- .config/nvim/lua/my/tools.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/my/tools.lua b/.config/nvim/lua/my/tools.lua index fb8a86c..84bd0de 100644 --- a/.config/nvim/lua/my/tools.lua +++ b/.config/nvim/lua/my/tools.lua @@ -27,16 +27,17 @@ require('telescope').setup { local builtin = require('telescope.builtin') local my = require('my.functions') -map('n', 'tb', builtin.buffers, 'Open buffers') +map('n', 'tb', builtin.buffers, 'Buffers') map('n', 'tf', function() builtin.find_files({ cwd = my.get_project_root() }) end, 'Files') +map('n', 'tF', builtin.find_files, 'Files in this directory') map('n', 'to', builtin.oldfiles, 'Recently opened files') map('n', 'tg', function() builtin.live_grep({ cwd = my.get_project_root() }) end, 'Live-grep') map('n', 'tm', builtin.man_pages, 'Man pages') -map('n', 'tr', builtin.registers, 'Register') +map('n', 'tr', builtin.registers, 'Registers') require("nvim-tree").setup({ filters = {