Use telescope.builtin Lua functions in mappings
This commit is contained in:
parent
c190e42da5
commit
985df79d1a
@ -29,14 +29,15 @@ return {
|
|||||||
})
|
})
|
||||||
telescope.load_extension('fzy_native')
|
telescope.load_extension('fzy_native')
|
||||||
|
|
||||||
-- TODO: Add more mappings?
|
local builtin = require('telescope.builtin')
|
||||||
local opts = { noremap = true }
|
local opts = { noremap = true }
|
||||||
vim.keymap.set('n', '<leader>gF', ':Telescope find_files<CR>', opts)
|
vim.keymap.set('n', '<leader>gF', builtin.find_files, opts)
|
||||||
vim.keymap.set('n', '<leader>gf', ':Telescope git_files<CR>', opts)
|
vim.keymap.set('n', '<leader>gf', builtin.git_files, opts)
|
||||||
vim.keymap.set('n', '<leader>gg', ':Telescope live_grep<CR>', opts)
|
vim.keymap.set('n', '<leader>gg', builtin.live_grep, opts)
|
||||||
vim.keymap.set('n', '<leader>rg', ':Telescope grep_string<CR>', opts)
|
vim.keymap.set('n', '<leader>rg', builtin.grep_string, opts)
|
||||||
vim.keymap.set('n', '<leader>gb', ':Telescope buffers<CR>', opts)
|
vim.keymap.set('n', '<leader>gb', builtin.buffers, opts)
|
||||||
vim.keymap.set('n', '<leader>gh', ':Telescope help_tags<CR>', opts)
|
vim.keymap.set('n', '<leader>gh', builtin.help_tags, opts)
|
||||||
|
vim.keymap.set('n', '<leader>bl', builtin.current_buffer_fuzzy_find, opts)
|
||||||
|
|
||||||
require('easypick').setup({
|
require('easypick').setup({
|
||||||
pickers = { },
|
pickers = { },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user