From 2f65a7a537aa495e71b821cd824257fe213601ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20H=C3=BCrlimann?= Date: Wed, 24 Oct 2018 18:50:32 +0200 Subject: [PATCH] made the neovim switch --- ftplugin/rust.vim | 6 ++++ vimrc => init.vim | 91 +++++++++++++++++++++-------------------------- 2 files changed, 47 insertions(+), 50 deletions(-) rename vimrc => init.vim (51%) diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index b80ead3..9c2b7de 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,2 +1,8 @@ set makeprg=cargo\ build set formatprg=rustfmt +let g:LanguageClient_serverCommands = { 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'] } + +nnoremap :call LanguageClient_contextMenu() +nnoremap K :call LanguageClient#textDocument_hover() +nnoremap gd :call LanguageClient#textDocument_definition() +nnoremap :call LanguageClient#textDocument_rename() diff --git a/vimrc b/init.vim similarity index 51% rename from vimrc rename to init.vim index e8fbd3d..49442e9 100644 --- a/vimrc +++ b/init.vim @@ -1,42 +1,41 @@ -set nocompatible -filetype off - -" make vundle use git:// instead of http{,s}:// -" makes things a lot faster -let g:vundle_default_git_proto = 'git' -set rtp+=~/.vim/bundle/Vundle.vim/ -call vundle#begin() - -Plugin 'VundleVim/Vundle.vim' - -Plugin 'airblade/vim-gitgutter' -Plugin 'ap/vim-css-color' -Plugin 'avakhov/vim-yaml' -Plugin 'bitterjug/vim-colors-bitterjug' -Plugin 'davidhalter/jedi-vim' -Plugin 'dhruvasagar/vim-table-mode' -Plugin 'honza/vim-snippets' -Plugin 'kien/ctrlp.vim' -Plugin 'leshill/vim-json' -Plugin 'luochen1990/rainbow' -Plugin 'majutsushi/tagbar' -Plugin 'matchit.zip' -Plugin 'mileszs/ack.vim' -Plugin 'paredit.vim' -Plugin 'pbrisbin/html-template-syntax' -Plugin 'Raimondi/delimitMate' -Plugin 'rhysd/vim-clang-format' -Plugin 'scrooloose/nerdcommenter' -Plugin 'scrooloose/nerdtree' -Plugin 'sirver/ultisnips' -Plugin 'tpope/vim-classpath' -Plugin 'tpope/vim-fireplace' -Plugin 'tpope/vim-fugitive' -Plugin 'tpope/vim-repeat' -Plugin 'tpope/vim-surround.git' -Plugin 'vim-scripts/a.vim' - -call vundle#end() +set runtimepath^=/usr/share/vim/vimfiles + +call plug#begin('~/.local/share/nvim/plugged') + +Plug 'airblade/vim-gitgutter' +Plug 'ap/vim-css-color' +Plug 'autozimu/LanguageClient-neovim' +Plug 'avakhov/vim-yaml' +Plug 'bitterjug/vim-colors-bitterjug' +Plug 'davidhalter/jedi-vim' +Plug 'dhruvasagar/vim-table-mode' +Plug 'honza/vim-snippets' +Plug 'kien/ctrlp.vim' +Plug 'leshill/vim-json' +Plug 'luochen1990/rainbow' +Plug 'majutsushi/tagbar' +Plug 'mileszs/ack.vim' +Plug 'pbrisbin/html-template-syntax' +Plug 'Raimondi/delimitMate' +Plug 'rhysd/vim-clang-format' +Plug 'rust-lang-nursery/rls' +Plug 'rust-lang/rust.vim' +Plug 'scrooloose/nerdcommenter' +Plug 'scrooloose/nerdtree' +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'sirver/ultisnips' +Plug 'tpope/vim-classpath' +Plug 'tpope/vim-fireplace' +Plug 'tpope/vim-fugitive' +Plug 'tpope/vim-repeat' +Plug 'tpope/vim-surround' +Plug 'vim-scripts/a.vim' +Plug 'vim-scripts/matchit.zip' +Plug 'vim-scripts/paredit.vim' + +call plug#end() + +let g:deoplete#enable_at_startup = 1 let g:ackprg = "ag --vimgrep" @@ -54,12 +53,8 @@ let delimitMate_expand_space = 1 set cursorcolumn set cursorline -filetype plugin indent on - colorscheme bitterjug -syntax on - set number set relativenumber @@ -78,10 +73,6 @@ set nobackup set hlsearch -if has('gui_running') - set guioptions=aAceif -endif - if has("cscope") set csto=0 set cst @@ -106,11 +97,11 @@ if has("cscope") endif nnoremap :NERDTreeToggle -nnoremap :TagbarToggle +nnoremap :TagbarToggle nnoremap :%s/\C\<\>/ -command Vr tabedit ~/.vim/vimrc -command Vt execute "tabedit ~/.vim/ftplugin/" . &filetype . ".vim" +command Vr tabedit ~/.config/nvim/init.vim +command Vt execute "tabedit ~/.config/nvim/ftplugin/" . &filetype . ".vim" set colorcolumn=100 highlight ColorColumn ctermbg=red -- 2.51.2