Skip to content

Commit

Permalink
Add back syntastic
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Feb 6, 2017
1 parent c9d5181 commit 72c0afe
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
path = lib/linux/clipmenu
url = https://github.com/cdown/clipmenu/
branch = develop
[submodule "lib/vim/neomake"]
path = lib/vim/neomake
url = https://github.com/neomake/neomake
[submodule "lib/vim/yang.vim"]
path = lib/vim/yang.vim
url = https://github.com/nathanalderson/yang.vim
Expand All @@ -119,3 +116,6 @@
[submodule "lib/vim/vim-polyglot"]
path = lib/vim/vim-polyglot
url = https://github.com/sheerun/vim-polyglot
[submodule "lib/vim/syntastic"]
path = lib/vim/syntastic
url = https://github.com/vim-syntastic/syntastic
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ git clone https://github.com/ervandew/supertab.git $DOTHOME/usr/vim/supertab
* [deoplete.nvim](https://github.com/Shougo/deoplete.nvim): 🌠 Dark powered asynchronous completion framework for neovim
* [editorconfig-vim](https://github.com/editorconfig/editorconfig-vim): EditorConfig plugin for Vim
* [fzf.vim](https://github.com/junegunn/fzf.vim): fzf :heart: vim
* [neomake](https://github.com/neomake/neomake): Asynchronous linting and make framework for Neovim/Vim
* [pathogen.vim](https://github.com/tpope/vim-pathogen): Manage your runtimepath
* [syntastic](https://github.com/scrooloose/syntastic): Syntax checking hacks for vim
* [tsuquyomi](https://github.com/Quramy/tsuquyomi): A Vim plugin for TypeScript
* [ultisnips](https://github.com/SirVer/ultisnips): The ultimate snippet solution for Vim
* [vim-commentary](https://github.com/tpope/vim-commentary): comment stuff out
Expand Down
30 changes: 13 additions & 17 deletions config/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,6 @@
call deoplete#enable()
endif

" Set patterns for TypeScript autocompletion
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
let g:deoplete#omni#input_patterns.typescript = ['[^. \t0-9]\.\w*']

" Fugitive
autocmd VimRc BufReadPost fugitive://* set bufhidden=delete
nnoremap <silent> <leader>gs :Gstatus<CR>
Expand All @@ -403,11 +399,19 @@
nnoremap <silent> <leader>gw :Gwrite<CR>
nnoremap <silent> <leader>gr :Gremove<CR>
" Neomake
" Syntastic
nmap <silent> <leader>mf :Neomake<CR>
nmap <silent> <leader>mF :Neomake!<CR>
set statusline+=\ %#ErrorMsg#%{neomake#statusline#LoclistStatus('loc:\ ')}
set statusline+=\ %#ErrorMsg#%{neomake#statusline#QflistStatus('qf:\ ')}
nmap <silent> <leader>mF :make<CR>
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_vim_checkers = ['vint']
let g:syntastic_html_checkers = ['htmlhint']
set statusline+=%#warningmsg#%{SyntasticStatuslineFlag()}%*

" TypeScript
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
let g:deoplete#omni#input_patterns.typescript = ['[^. \t0-9]\.\w*']
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']

" Vim Test
let test#strategy = 'make'
Expand Down Expand Up @@ -486,19 +490,11 @@
" }}}

" User configuration {{{
"
try
" Load user configuration
source $DOTHOME/usr/vimrc
catch
endtry

" Yang
let g:neomake_yang_enabled_makers = [ 'pyang' ]
let g:neomake_yang_pyang_maker = {
\ 'args': [ '--path', get(g:, 'neomake_yang_pyang_yangpath', '.') ],
\ 'errorformat':
\ '%f:%l: %trror: %m,' .
\ '%f:%l: %tarning: %m,'
\ }

" }}}
1 change: 0 additions & 1 deletion lib/vim/neomake
Submodule neomake deleted from ff4cf3
1 change: 1 addition & 0 deletions lib/vim/syntastic
Submodule syntastic added at 2124af

0 comments on commit 72c0afe

Please sign in to comment.