Browse Source

add nvim config

master
parent
commit
8fcae2bfa6
2 changed files with 83 additions and 0 deletions
  1. +0
    -0
      dot_config/nvim/.keep
  2. +83
    -0
      dot_config/nvim/init.vim

+ 0
- 0
dot_config/nvim/.keep View File


+ 83
- 0
dot_config/nvim/init.vim View File

@ -0,0 +1,83 @@
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/killruana/.local/share/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/killruana/.local/share/dein')
call dein#begin('/home/killruana/.local/share/dein')
" Let dein manage dein
" Required:
call dein#add('/home/killruana/.local/share/dein/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here like this:
call dein#add('autozimu/LanguageClient-neovim', {
\ 'rev': 'next',
\ 'build': 'bash install.sh',
\ })
call dein#add('deoplete-plugins/deoplete-jedi')
call dein#add('majutsushi/tagbar')
" call dein#add('sebastianmarkow/deoplete-rust')
call dein#add('Shougo/deoplete.nvim')
call dein#add('Shougo/neoinclude.vim')
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('rust-lang/rust.vim')
" call dein#add('tbodt/deoplete-tabnine', { 'build': './install.sh' })
call dein#add('vim-syntastic/syntastic')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
"End dein Scripts-------------------------
" Global settings
set number
" LanguageClient
set hidden
let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ }
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
" Syntastic settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Tagbar settings
nmap <F8> :TagbarToggle<CR>
" Rustfmt
let g:rustfmt_autosave = 1
" Deoplete
let g:deoplete#enable_at_startup = 1
" Deoplete rust
let g:deoplete#sources#rust#racer_binary='/usr/bin/racer'
let g:deoplete#sources#rust#rust_source_path='/home/killruana/projects/rust/src'

Loading…
Cancel
Save