Skip to content

Instantly share code, notes, and snippets.

@iiey
Created July 21, 2021 11:35
Show Gist options
  • Save iiey/ef5ac9cb9392b68b64038a95d7a163f7 to your computer and use it in GitHub Desktop.
Save iiey/ef5ac9cb9392b68b64038a95d7a163f7 to your computer and use it in GitHub Desktop.
neovim init file
" ~/.config/nvim/init.vim
" LOAD VIM CONFIG
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vim/vimrc
" load plugins with vimplug
call plug#begin('~/.vim/plugged')
if has('nvim-0.5.0')
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
endif
call plug#end()
" Telescope
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment