Skip to content

Commit

Permalink
fix(nvim): update telescope config
Browse files Browse the repository at this point in the history
  • Loading branch information
craftzdog committed Oct 27, 2021
1 parent ae34710 commit 4e1d81a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .config/nvim/after/plugin/telescope.rc.vim
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
if !exists('g:loaded_telescope') | finish | endif

nnoremap <silent> ;f <cmd>Telescope find_files<cr>
nnoremap <silent> ;r <cmd>Telescope live_grep<cr>
nnoremap <silent> ;f <cmd>lua require('telescope.builtin').find_files()<cr>
nnoremap <silent> ;r <cmd>lua require('telescope.builtin').live_grep()<cr>
nnoremap <silent> ;b <cmd>lua require('telescope.builtin').file_browser()<cr>
nnoremap <silent> \\ <cmd>Telescope buffers<cr>
nnoremap <silent> ;; <cmd>Telescope help_tags<cr>
lua << EOF
function telescope_buffer_dir()
return vim.fn.expand('%:p:h')
end

local telescope = require('telescope')
local actions = require('telescope.actions')
-- Global remapping
------------------------------
require('telescope').setup{

telescope.setup{
defaults = {
mappings = {
n = {
Expand All @@ -20,3 +25,4 @@ require('telescope').setup{
}
EOF


0 comments on commit 4e1d81a

Please sign in to comment.