nvim: add keymapping for files in current dir
This commit is contained in:
parent
5fe03a219f
commit
d9d666e45b
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user