Julio Biason
2 years ago
3 changed files with 12 additions and 4 deletions
@ -1,5 +1,11 @@
|
||||
vim.api.nvim_set_keymap('n', '<leader><space>', '<cmd>Telescope find_files<CR>', { noremap = true, silent = true }) |
||||
vim.api.nvim_set_keymap('n', '<leader>p', '<cmd>Telescope git_files<CR>', { noremap = true, silent = true }) |
||||
vim.api.nvim_set_keymap('n', '<leader>g', '<cmd>Telescope live_grep<CR>', { noremap = true, silent = true }) |
||||
vim.api.nvim_set_keymap('n', '<leader>b', '<cmd>Telescope buffers<CR>', { noremap = true, silent = true }) |
||||
local builtin = require('telescope.builtin') |
||||
local options = { noremap = true, silent = true } |
||||
|
||||
vim.keymap.set('n', '<leader><space>', builtin.find_files, options) |
||||
vim.keymap.set('n', '<leader>g', builtin.live_grep, options) |
||||
vim.keymap.set('n', '<leader>p', builtin.git_files, options) |
||||
vim.keymap.set('n', '<leader>b', builtin.buffers, options) |
||||
vim.keymap.set('n', '<leader>s', function() |
||||
builtin.grep_string({ search = vim.fn.input("Search: ")}) |
||||
end, { noremap = true, silent = false } |
||||
) |
||||
|
Loading…
Reference in new issue