Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Thomas Hourlier
- " Neovim {{{
- let g:loaded_ruby_provider = 0 " disable ruby extension support
- let g:python_host_prog = '/home/thomas.hourlier/.pyenv/versions/neovim2/bin/python'
- let g:python6_host_prog = '/home/thomas.hourlier/.pyenv/versions/neovim3/bin/python'
- " }}}
- " General {{{
- set nocompatible
- set clipboard=unnamed
- set shell=/bin/zsh
- set undolevels=500
- set showtabline=2
- set encoding=UTF-8
- set showtabline=0
- filetype on
- xnoremap p pgvy
- set pastetoggle=<F2>
- set hidden
- set lazyredraw
- syntax enable
- set background=dark
- " }}}
- " Plugins {{{
- call plug#begin('~/.local/share/nvim/plugged')
- Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
- Plug 'junegunn/fzf.vim'
- Plug 'neoclide/coc.nvim', {'branch': 'release'}
- Plug 'sheerun/vim-polyglot'
- call plug#end()
- " }}}
- " Leader Key {{{
- let g:mapleader = ';'
- " }}}
- " Completion {{{
- set wildmenu wildmode=full
- " }}}
- " Leader Mapping {{{
- " fuzzy file search
- nnoremap <C-p> :FZF<CR>
- " }}}
- " Plugin configurations {{{
- " Coc.nvim {{{
- " Use tab for trigger completion with characters ahead and navigate.
- inoremap <silent><expr> <TAB>
- \ pumvisible() ? "\<C-n>" :
- \ <SID>check_back_space() ? "\<TAB>" :
- \ coc#refresh()
- inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
- function! s:check_back_space() abort
- let col = col('.') - 1
- return !col || getline('.')[col - 1] =~# '\s'
- endfunction
- " Use <c-space> to trigger completion.
- inoremap <silent><expr> <c-space> coc#refresh()
- " Don't give message like 1 match out of 3 when auto completing
- set shortmess+=c
- " Remap keys for gotos
- nmap <silent> gd <Plug>(coc-definition)
- " Remap for rename current word
- nmap <leader>rn <Plug>(coc-rename)<Paste>
- " }}}
- " FZF {{{
- let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore={.elixir_ls,node_modules,tmp,var,log,vendor,dist,.git} -l -g ""'
- " }}}
- " }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement