Add Telescope Config

This commit is contained in:
Norm Rasmussen
2022-11-09 16:48:39 -05:00
parent 9a55a49962
commit 25c4bdf348
5 changed files with 112 additions and 21 deletions

View File

@ -9,12 +9,8 @@ map('n', '<leader>s', ':w<CR>', default_opts)
map('n', '<leader>a', ':w|:luafile %<CR>', default_opts)
map('n', '<leader>aa', ':w|:luafile %<CR> |:PackerSync<CR>', default_opts)
map('i', '<leader>s', '<C-c>:w<CR>', default_opts)
-- Move around splits using Ctrl + {h,j,k,l}
--map('n', '<C-h>', '<C-w>h', default_opts)
--map('n', '<C-j>', '<C-w>j', default_opts)
--map('n', '<C-k>', '<C-w>k', default_opts)
--map('n', '<C-l>', '<C-w>l', default_opts)
-- Python Script that saves the file & moves Todos to my Todolist.
map('n', '<leader>sd', ':w|:! python3 ~/Documents/Northpass/Scripts/TodoMD/todo.py %<CR>', default_opts)
-- Neovim Tab Navgation via Vem-Tabline
map('n', '<leader>t', ':tabnew<CR>', default_opts)
@ -41,3 +37,12 @@ map('n', '<leader>=', ':NvimTreeResize +1<CR>', default_opts)
map('n', '<leader>-', ':NvimTreeResize -1<CR>', default_opts)
map('n', '<leader>==', ':NvimTreeResize +10<CR>', default_opts)
map('n', '<leader>--', ':NvimTreeResize -10<CR>', default_opts)
-----------------------------------------------------------
-- Telescope Keymaps
-----------------------------------------------------------
map('n', '<leader>ff', ':Telescope find_files<CR>', default_opts)
map('n', '<leader>fg', ':Telescope live_grep<CR>', default_opts)
map('n', '<leader>fb', ':Telescope buffers<CR>', default_opts)
map('n', '<leader>fe', ':Telescope file_browser<CR>', default_opts)