Browse Source

Support telescope

master
Taylor Bockman 10 months ago
parent
commit
236e700bcb
  1. 14
      README.md
  2. 7
      lua/conf/keybinds.lua
  3. 2
      lua/conf/plugins.lua

14
README.md

@ -145,3 +145,17 @@ to activate the LSP support.
[Asyncrun.vim](https://github.com/skywind3000/asyncrun.vim) is installed. You can use this to run shell commands asynchronously.
To do this type `:AsyncRun <command>`.
### Search
[ctrlp](https://github.com/kien/ctrlp.vim) and [telescope](https://github.com/nvim-telescope/telescope.nvim)
are installed. The hotkeys are as follows:
```
<leader>ff find_files
<leader>fg live_grep
<leader>fb buffers
<leader>fh help_tags
<ctrl>p ctrlp search
```

7
lua/conf/keybinds.lua

@ -13,6 +13,13 @@ end
-- Space is the leader key when outside of insert mode.
vim.g.mapleader = " "
-- Telescope
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
vim.api.nvim_set_keymap('', '<Leader>t', ':NERDTreeToggle<CR>', {silent = true})
-- <SPC>-r controls relative line numbering.

2
lua/conf/plugins.lua

@ -35,6 +35,8 @@ Plug 'tpope/vim-commentary'
-- Search
Plug 'kien/ctrlp.vim'
Plug 'nvim-lua/plenary.nvim'
Plug('nvim-telescope/telescope.nvim', { tag = '0.1.2' })
-- Git
Plug 'tpope/vim-fugitive'

Loading…
Cancel
Save