Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Specify a directory for plugins.
- if empty(glob('~/.config/nvim/autoload/plug.vim'))
- silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
- \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
- endif
- call plug#begin('~/.local/share/nvim/bundle/')
- " Specify your required plugins here.
- Plug 'liuchengxu/vim-better-default'
- " which key - show suggestions after hitting leader key
- Plug 'liuchengxu/vim-which-key'
- let g:mapleader = "\<Space>"
- let g:maplocalleader = ","
- nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR>
- nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
- set timeoutlen=300 " reduce time until the menu shows
- " fuzzy find files in project
- Plug 'ctrlpvim/ctrlp.vim'
- if executable('ag')
- " use Ag over grep
- set grepprg=ag\ --nogroup\ --nocolor
- " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
- let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
- endif
- " press leader ? to start ctrlp (fuzzy searching)
- nnoremap <silent> <leader>? :CtrlP<CR>
- " Optional useful plugins I highly recommend.
- Plug 'easymotion/vim-easymotion'
- Plug 'guns/vim-sexp'
- Plug 'tpope/vim-sexp-mappings-for-regular-people'
- Plug 'Shougo/deoplete.nvim'
- Plug 'ncm2/float-preview.nvim'
- Plug 'jiangmiao/auto-pairs', { 'tag': 'v2.0.0' }
- Plug 'w0rp/ale'
- " I skipped vim-clap but feel free to add it!
- " Conjure! :D
- Plug 'Olical/conjure', {'tag': 'v3.4.0'}
- " Initialize plugin system.
- " Theme
- Plug 'dracula/vim'
- Plug 'vim-airline/vim-airline/'
- Plug 'l04m33/vlime', {'rtp': 'vim/'}
- call plug#end()
- " Configuration for various plugins.
- let g:deoplete#enable_at_startup = 1
- call deoplete#custom#option('keyword_patterns', {'clojure': '[\w!$%&*+/:<=>?@\^_~\-\.#]*'})
- set completeopt-=preview
- let g:float_preview#docked = 0
- let g:float_preview#max_width = 80
- let g:float_preview#max_height = 40
- let g:ale_linters = {
- \ 'clojure': ['clj-kondo', 'joker']
- \}
- colorscheme dracula
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement