jez / vim-better-sml

:tada: Enjoy writing SML within Vim
https://blog.jez.io/sml-dev-setup/
104 stars 10 forks source link

check if users have installed syntastic #5

Closed dangkhoasdc closed 7 years ago

jez commented 7 years ago

Just to be sure, is the reason why you've made this change because it would otherwise raise an error? If that's the case, would you mind posting maybe the error message or a short description of the expected/observed behavior (to make it easier for people to find this issue in the future)?

dangkhoasdc commented 7 years ago

Nowadays Vim/Neovim users have many plugins for syntax type checking. For example, I don't use Syntastic and use neomake instead. The error occurs when opening sml file since it could not find function findGlobInParent.

Error detected while processing /home/dangkhoa/.config/nvim/plugged/vim-better-
sml/ftplugin/sml.vim:                                                          
line   26:                                                                     
E117: Unknown function: syntastic#util#findGlobInParent                        
E15: Invalid expression: syntastic#util#findGlobInParent('*.cm', expand('%:p:h'
, 1))                                                                          
line   27:                                                                     
E121: Undefined variable: s:cm                                                 
E15: Invalid expression: s:cm !=# ''  

Imgur

jez commented 7 years ago

Thanks!