Skip to content

Instantly share code, notes, and snippets.

@RepComm
Created May 15, 2023 15:43
Show Gist options
  • Save RepComm/a93ea826dfa9a408c09ea5ad4fcdb937 to your computer and use it in GitHub Desktop.
Save RepComm/a93ea826dfa9a408c09ea5ad4fcdb937 to your computer and use it in GitHub Desktop.
My ~/.config/nvim/init.vim script - updated as I change it
set number
set tabstop=2
set shiftwidth=2
set expandtab
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()
nmap <silent> gd <Plug>(coc-definition)
inoremap <silent><expr> <tab> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<TAB>"
inoremap <silent><expr> <cr> "\<c-g>u\<CR>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment