[nvim] add small Telescope option and live_grep shortcut
This commit is contained in:
parent
9236a4c024
commit
70a4d4a8ef
1 changed files with 9 additions and 0 deletions
|
@ -21,10 +21,19 @@ options = { noremap = true }
|
||||||
map('n', '<Leader>ff', ':Telescope find_files<Enter>', options)
|
map('n', '<Leader>ff', ':Telescope find_files<Enter>', options)
|
||||||
map('n', '<Leader>fg', ':Telescope git_files<Enter>', options)
|
map('n', '<Leader>fg', ':Telescope git_files<Enter>', options)
|
||||||
map('n', '<Leader>gc', ':Telescope git_commits<Enter>', options)
|
map('n', '<Leader>gc', ':Telescope git_commits<Enter>', options)
|
||||||
|
map('n', '<Leader>fl', ':Telescope live_grep<Enter>', options)
|
||||||
map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options)
|
map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options)
|
||||||
map('n', '<Leader>t', ':TagbarToggle<Enter>', options)
|
map('n', '<Leader>t', ':TagbarToggle<Enter>', options)
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------
|
||||||
|
-- Telescope
|
||||||
|
--------------------------------------------------
|
||||||
|
require('telescope').setup{
|
||||||
|
defaults = {
|
||||||
|
prompt_prefix = "> ",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
-- LSP
|
-- LSP
|
||||||
|
|
Loading…
Reference in a new issue