aboutsummaryrefslogtreecommitdiff
path: root/Editor/vimrc
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2020-03-31 11:55:08 +0100
committerVasil Zlatanov <v@skozl.com>2020-03-31 11:55:08 +0100
commitf8ffcbd2f93ffe40e848bc814c4beeb93f2db705 (patch)
treea0a807a50a072bcc50eca8768d1020eb458f3ae8 /Editor/vimrc
parent82a71ba09d78288af99e5ec619ed8a938008f84e (diff)
downloaddotfiles-f8ffcbd2f93ffe40e848bc814c4beeb93f2db705.tar.gz
dotfiles-f8ffcbd2f93ffe40e848bc814c4beeb93f2db705.tar.bz2
dotfiles-f8ffcbd2f93ffe40e848bc814c4beeb93f2db705.zip
Add ale linting/completion
Diffstat (limited to 'Editor/vimrc')
-rw-r--r--Editor/vimrc19
1 files changed, 11 insertions, 8 deletions
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 <Tab> => <C-n>
-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