From f8ffcbd2f93ffe40e848bc814c4beeb93f2db705 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 31 Mar 2020 11:55:08 +0100 Subject: Add ale linting/completion --- Editor/vimrc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Editor/vimrc') diff --git a/Editor/vimrc b/Editor/vimrc index fbf7cd3..ee3e252 100644 --- a/Editor/vimrc +++ b/Editor/vimrc @@ -10,16 +10,10 @@ Plugin 'tpope/vim-repeat' " surround repeat Plugin 'tpope/vim-fugitive' " git support in airline Plugin 'ervandew/supertab' " Smart => -Plugin 'Shougo/deoplete.nvim' " Code completion -Plugin 'zchee/deoplete-clang' " C copletion -Plugin 'deoplete-plugins/deoplete-jedi' " Python Completion - -Plugin 'bling/vim-airline' " Airline (Powerline) -Plugin 'vim-airline/vim-airline-themes' " Airline theme - Plugin 'neomutt/neomutt.vim' " Support for neomutt filetypes Plugin 'chriskempson/base16-vim' " Base16 themes +Plugin 'Yggdroot/indentLine' " Indent guides Plugin 'w0rp/ale' " Linting Engine @@ -46,7 +40,6 @@ set number " Shows current line instead of 0 set isfname+=32 " Read spaces in path's - set clipboard^=unnamed " sync paste buffer and vims register set mouse= " disable mouse @@ -110,6 +103,10 @@ let g:airline#extensions#ale#enabled = 1 " Ale Linter Config +hi link ALEWarning Debug +hi link ALEError Error +let g:ale_completion_enabled = 1 +" Ale Perl let g:ale_set_loclist = 0 let g:ale_set_quickfix = 1 let g:ale_linters = { 'perl': ['perl', 'perlcritic'] } @@ -118,6 +115,12 @@ let g:ale_perl_perlcritic_options = '--stern' let g:ale_lint_on_text_changed = 'normal' let g:ale_lint_on_insert_leave = 1 +" Ale Rust +let g:ale_rust_rls_toolchain = '' +let g:ale_rust_rls_executable = 'rust-analyzer' +let g:ale_linters = { 'rust': ['rls'] } +let g:ale_fixers = { 'rust': ['rustfmt'] } + " Modify The ColorScheme to show Italic and Bold in Markdown. " Italicise comments and Type's " And make Line numbers same as background in Base16 themes -- cgit v1.2.3-54-g00ecf