]> Untitled Git - vimfiles.git/commitdiff
made the neovim switch
authorPhilippe Hürlimann <p@hurlimann.org>
Wed, 24 Oct 2018 16:50:32 +0000 (18:50 +0200)
committerPhilippe Hürlimann <p@hurlimann.org>
Wed, 24 Oct 2018 16:58:13 +0000 (18:58 +0200)
ftplugin/rust.vim
init.vim [moved from vimrc with 51% similarity]

index b80ead3a06a78110e19fe7af91be3d2385088017..9c2b7dedd7ff366fb547516770558a27bf436d4f 100644 (file)
@@ -1,2 +1,8 @@
 set makeprg=cargo\ build
 set formatprg=rustfmt
+let g:LanguageClient_serverCommands = { 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'] }
+
+nnoremap <F5> :call LanguageClient_contextMenu()<CR>
+nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
+nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
+nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
diff --git a/vimrc b/init.vim
similarity index 51%
rename from vimrc
rename to init.vim
index e8fbd3d96912717edc77333b370e9d1590294bd7..49442e9dcc34fff694924cf8d978acd69328e6b9 100644 (file)
--- 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 <C-S-N> :NERDTreeToggle<CR>
-nnoremap  <F8> :TagbarToggle<CR>
+nnoremap <F8> :TagbarToggle<CR>
 nnoremap <F3> :%s/\C\<<C-r><C-w>\>/
 
-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