nvim: add keymapping for files in current dir

This commit is contained in:
tastytea 2022-08-17 00:20:15 +02:00
parent 5fe03a219f
commit d9d666e45b
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -27,16 +27,17 @@ require('telescope').setup {
local builtin = require('telescope.builtin')
local my = require('my.functions')
map('n', '<Leader>tb', builtin.buffers, 'Open buffers')
map('n', '<Leader>tb', builtin.buffers, 'Buffers')
map('n', '<Leader>tf', function()
builtin.find_files({ cwd = my.get_project_root() })
end, 'Files')
map('n', '<Leader>tF', builtin.find_files, 'Files in this directory')
map('n', '<Leader>to', builtin.oldfiles, 'Recently opened files')
map('n', '<Leader>tg', function()
builtin.live_grep({ cwd = my.get_project_root() })
end, 'Live-grep')
map('n', '<Leader>tm', builtin.man_pages, 'Man pages')
map('n', '<Leader>tr', builtin.registers, 'Register')
map('n', '<Leader>tr', builtin.registers, 'Registers')
require("nvim-tree").setup({
filters = {