Advertisement
Guest User

Untitled

a guest
Jun 14th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.03 KB | None | 0 0
  1. " Specify a directory for plugins.
  2. if empty(glob('~/.config/nvim/autoload/plug.vim'))
  3.   silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
  4.     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  5.   autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  6. endif
  7. call plug#begin('~/.local/share/nvim/bundle/')
  8.  
  9.  
  10. " Specify your required plugins here.
  11. Plug 'liuchengxu/vim-better-default'
  12.  
  13. " which key - show suggestions after hitting leader key
  14. Plug 'liuchengxu/vim-which-key'
  15. let g:mapleader = "\<Space>"
  16. let g:maplocalleader = ","
  17. nnoremap <silent> <leader>      :<c-u>WhichKey '<Space>'<CR>
  18. nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
  19. set timeoutlen=300 " reduce time until the menu shows
  20.  
  21. " fuzzy find files in project
  22. Plug 'ctrlpvim/ctrlp.vim'
  23. if executable('ag')
  24.   " use Ag over grep
  25.   set grepprg=ag\ --nogroup\ --nocolor
  26.  
  27.   " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
  28.   let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
  29. endif
  30. " press leader ? to start ctrlp (fuzzy searching)
  31. nnoremap <silent> <leader>? :CtrlP<CR>
  32.  
  33. " Optional useful plugins I highly recommend.
  34. Plug 'easymotion/vim-easymotion'
  35. Plug 'guns/vim-sexp'
  36. Plug 'tpope/vim-sexp-mappings-for-regular-people'
  37. Plug 'Shougo/deoplete.nvim'
  38. Plug 'ncm2/float-preview.nvim'
  39. Plug 'jiangmiao/auto-pairs', { 'tag': 'v2.0.0' }
  40. Plug 'w0rp/ale'
  41.  
  42. " I skipped vim-clap but feel free to add it!
  43.  
  44. " Conjure! :D
  45. Plug 'Olical/conjure', {'tag': 'v3.4.0'}
  46.  
  47. " Initialize plugin system.
  48.  
  49. " Theme
  50. Plug 'dracula/vim'
  51. Plug 'vim-airline/vim-airline/'
  52. Plug 'l04m33/vlime', {'rtp': 'vim/'}
  53.  
  54. call plug#end()
  55.  
  56. " Configuration for various plugins.
  57. let g:deoplete#enable_at_startup = 1
  58. call deoplete#custom#option('keyword_patterns', {'clojure': '[\w!$%&*+/:<=>?@\^_~\-\.#]*'})
  59. set completeopt-=preview
  60.  
  61. let g:float_preview#docked = 0
  62. let g:float_preview#max_width = 80
  63. let g:float_preview#max_height = 40
  64.  
  65. let g:ale_linters = {
  66.       \ 'clojure': ['clj-kondo', 'joker']
  67.       \}
  68.  
  69.  
  70. colorscheme dracula
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement