Added code completion for rust
This commit is contained in:
7
ale.vim
7
ale.vim
@@ -2,13 +2,18 @@
|
|||||||
" Install the flake8, python-pylint packages
|
" Install the flake8, python-pylint packages
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'python': ['flake8', 'pylint'],
|
\ 'python': ['flake8', 'pylint'],
|
||||||
|
\ 'rust': ['rls'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\ 'python': ['yapf'],
|
\ 'python': ['yapf'],
|
||||||
|
\ 'rust': ['rustfmt']
|
||||||
\}
|
\}
|
||||||
|
|
||||||
nmap <F10> :ALEFix<CR>
|
nmap <F10> :ALEFix<CR>
|
||||||
|
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_rust_rls_toolchain = 'nightly-YYYY-MM-DD'
|
||||||
|
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
let g:airline#extensions#ale#enabled = 1
|
||||||
|
|
||||||
|
|||||||
@@ -21,3 +21,7 @@ noremap <A-t> :belowright split +resize12 term://zsh<CR>
|
|||||||
|
|
||||||
" Delete the current buffer without closing the window in normal mode
|
" Delete the current buffer without closing the window in normal mode
|
||||||
noremap <C-S-d> :bnext <CR> :bd#<CR>
|
noremap <C-S-d> :bnext <CR> :bd#<CR>
|
||||||
|
|
||||||
|
" Map ale wraps to control+k and control+j
|
||||||
|
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
|
||||||
|
nmap <silent> <C-j> <Plug>(ale_next_wrap)
|
||||||
|
|||||||
6
plug.vim
6
plug.vim
@@ -9,7 +9,6 @@ Plug 'ayu-theme/ayu-vim'
|
|||||||
" Editor extensions
|
" Editor extensions
|
||||||
Plug 'neomake/neomake'
|
Plug 'neomake/neomake'
|
||||||
Plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
Plug 'zhaocai/timestamp.vim'
|
Plug 'zhaocai/timestamp.vim'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'bling/vim-bufferline'
|
Plug 'bling/vim-bufferline'
|
||||||
@@ -30,7 +29,11 @@ Plug 'vim-latex/vim-latex'
|
|||||||
Plug 'chikamichi/mediawiki.vim'
|
Plug 'chikamichi/mediawiki.vim'
|
||||||
|
|
||||||
" Syntaxhighlighting for .toml files
|
" Syntaxhighlighting for .toml files
|
||||||
|
" Extras for rust
|
||||||
|
|
||||||
Plug 'cespare/vim-toml'
|
Plug 'cespare/vim-toml'
|
||||||
|
Plug 'racer-rust/vim-racer'
|
||||||
|
Plug 'Shougo/deoplete.nvim'
|
||||||
|
|
||||||
" Extras for python coding
|
" Extras for python coding
|
||||||
Plug 'jeetsukumaran/vim-pythonsense'
|
Plug 'jeetsukumaran/vim-pythonsense'
|
||||||
@@ -38,4 +41,5 @@ Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
|
|||||||
Plug 'Vimjas/vim-python-pep8-indent'
|
Plug 'Vimjas/vim-python-pep8-indent'
|
||||||
Plug 'davidhalter/jedi-vim'
|
Plug 'davidhalter/jedi-vim'
|
||||||
Plug 'HiPhish/jinja.vim'
|
Plug 'HiPhish/jinja.vim'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|||||||
Reference in New Issue
Block a user