Guest User

Untitled

a guest
Apr 23rd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. "dein Scripts-----------------------------
  2. if &compatible
  3. set nocompatible " Be iMproved
  4. endif
  5.  
  6. " Required:
  7. set runtimepath+=/home/vitaliy/.config/nvim/plugins/repos/github.com/Shougo/dein.vim
  8.  
  9. " Required:
  10. if dein#load_state('/home/vitaliy/.config/nvim/plugins')
  11. call dein#begin('/home/vitaliy/.config/nvim/plugins')
  12.  
  13. " Let dein manage dein
  14. " Required:
  15. call dein#add('/home/vitaliy/.config/nvim/plugins/repos/github.com/Shougo/dein.vim')
  16.  
  17. call dein#add('Shougo/deoplete.nvim')
  18. if !has('nvim')
  19. call dein#add('roxma/nvim-yarp')
  20. call dein#add('roxma/vim-hug-neovim-rpc')
  21. endif
  22.  
  23. "--- Main ---
  24. call dein#add('dominikduda/vim_current_word')
  25. call dein#add('Shougo/denite.nvim')
  26.  
  27. call dein#add('junegunn/fzf', { 'build': './install --all', 'merged': 0 })
  28. call dein#add('junegunn/fzf.vim', { 'depends': 'fzf' })
  29.  
  30. "--- Nerd ---
  31. call dein#add('scrooloose/nerdtree')
  32. call dein#add('scrooloose/nerdcommenter')
  33. call dein#add('Xuyuanp/nerdtree-git-plugin')
  34.  
  35. "--- Languages --
  36. call dein#add('natebosch/vim-lsc')
  37. call dein#add('dart-lang/dart-vim-plugin')
  38. call dein#add('fatih/vim-go')
  39.  
  40. "Plug 'ap/vim-css-color'
  41. call dein#add('KabbAmine/vCoolor.vim')
  42. call dein#add('hail2u/vim-css3-syntax')
  43. call dein#add('docker/docker')
  44. call dein#add('fatih/vim-go')
  45.  
  46. "--- VCS ---
  47. call dein#add('tpope/vim-fugitive')
  48. call dein#add('sgur/vim-lazygutter')
  49. call dein#add('vim-scripts/vcscommand.vim')
  50.  
  51. "--- Tags ---
  52. call dein#add('mattn/emmet-vim')
  53. call dein#add('majutsushi/tagbar')
  54. "call dein#add('universal-ctags/ctags')
  55. call dein#add('basilgor/vim-autotags')
  56.  
  57. "--- Themes ---
  58. call dein#add('bling/vim-airline')
  59. call dein#add('vim-airline/vim-airline-themes')
  60. call dein#add('morhetz/gruvbox')
  61. call dein#add('ryanoasis/vim-webdevicons')
  62.  
  63.  
  64. " You can specify revision/branch/tag.
  65. call dein#add('Shougo/deol.nvim', { 'rev': 'a1b5108fd' })
  66.  
  67. " Required:
  68. call dein#end()
  69. call dein#save_state()
  70. endif
  71.  
  72. " Required:
  73. filetype plugin indent on
  74. syntax enable
  75.  
  76.  
  77. " If you want to install not installed plugins on startup.
  78. if dein#check_install()
  79. call dein#install()
  80. endif
  81.  
  82. "End dein Scripts-------------------------
  83.  
  84. let g:deoplete#enable_at_startup = 1
  85.  
  86. :tnoremap <Esc> <C-\><C-n>
  87.  
  88. "Base
  89. set encoding=utf8
  90. set background=dark
  91. set spell
  92. set linebreak
  93. set noswapfile
  94. set backspace=indent,eol,start
  95. set laststatus=2
  96. set number
  97. set incsearch
  98. set hlsearch
  99. set ignorecase
  100. set smartcase
  101. set termencoding=utf8
  102. set nocompatible
  103. set ruler
  104. set showcmd
  105. set foldenable
  106. set foldlevel=100
  107. set foldmethod=indent
  108. set noerrorbells visualbell t_vb=
  109. set t_Co=256
  110. set ch=1
  111. set autoindent
  112. set wrap
  113. set expandtab
  114. set shiftwidth=2
  115. set softtabstop=2
  116. set tabstop=2
  117. set smartindent
  118. set showmatch
  119. "set lines=55
  120. "set columns=140
  121. set iskeyword=@,48-57,_,192-255
  122. set history=200
  123. set langmap=рh,оj,лk,дl,РH,ОJ,ЛK,ДL
  124. set smarttab
  125. set title
  126. set autoread
  127. set breakindent
  128. set cursorline
  129. set autochdir
  130. set spell spelllang=ru_yo
  131.  
  132. setlocal spell spelllang=ru_yo
  133. nnoremap <c-p> :FZF<cr>
  134.  
  135. "Main
  136. let NERDTreeShowHidden=1
  137. let g:lsc_server_commands = {'dart': 'dart_language_server'}
  138. set bg=dark
  139. colorscheme gruvbox
  140. "deoplete tab-complete
  141. inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
  142.  
  143. "Airline
  144. let g:airline#extensions#tabline#enabled = 1
  145. let g:airline_theme='tomorrow'
  146.  
  147. let g:airline_right_alt_sep = ''
  148. let g:airline_right_sep = ''
  149. let g:airline_left_alt_sep= ''
  150. let g:airline_left_sep = ''
  151.  
  152. "Additional
  153.  
  154. "---------------------
  155. function! JumpToCSS()
  156. let id_pos = searchpos("id", "nb", line('.'))[1]
  157. let class_pos = searchpos("class", "nb", line('.'))[1]
  158.  
  159. if class_pos > 0 || id_pos > 0
  160. if class_pos < id_pos
  161. execute ":vim '#".expand('<cword>')."' *_theme.html"
  162. elseif class_pos > id_pos
  163. execute ":vim '.".expand('<cword>')."' *_theme.html"
  164. endif
  165. endif
  166. endfunction
  167.  
  168. nnoremap <leader>] :call JumpToCSS()
  169.  
  170.  
  171. "---------------------
  172. if !exists("g:tagbar_type_dart")
  173. let g:tagbar_type_dart = {
  174. \ 'ctagsbin' : 'pub',
  175. \ 'ctagsargs' : ['global', 'run', 'dart_ctags:tags', '--skip-sort', '--line-numbers'],
  176. \ 'ctagstype' : 'dart',
  177. \ 'kinds' : [
  178. \ 'c:classes',
  179. \ 'f:function',
  180. \ 'M:static method',
  181. \ 'm:method',
  182. \ 'i:field'
  183. \ ]
  184. \ }
  185. endif
  186.  
  187. "---------------------
  188. let g:lsc_auto_map = v:true
  189. let g:lsc_auto_map = {
  190. \ 'GoToDefinition': '<C-]>',
  191. \ 'FindReferences': 'gr',
  192. \ 'NextReference': '<C-n>',
  193. \ 'PreviousReference': '<C-p>',
  194. \ 'FindImplementations': 'gI',
  195. \ 'FindCodeActions': 'ga',
  196. \ 'DocumentSymbol': 'go',
  197. \ 'WorkspaceSymbol': 'gS',
  198. \ 'ShowHover': 'K',
  199. \ 'Completion': 'completefunc',
  200. \}
  201.  
  202. "---------------------
  203. let g:fzf_colors =
  204. \ { 'fg': ['fg', 'Comment'],
  205. \ 'bg': ['bg', 'Normal'],
  206. \ 'hl': ['fg', 'Comment'],
  207. \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
  208. \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
  209. \ 'hl+': ['fg', 'Statement'],
  210. \ 'info': ['fg', 'PreProc'],
  211. \ 'border': ['fg', 'Ignore'],
  212. \ 'prompt': ['fg', 'Conditional'],
  213. \ 'pointer': ['fg', 'Exception'],
  214. \ 'marker': ['fg', 'Keyword'],
  215. \ 'spinner': ['fg', 'Label'],
  216. \ 'header': ['fg', 'Comment'] }
Add Comment
Please, Sign In to add comment