diff --git a/config/bashrc b/config/bashrc index 00e390c..fe397c5 100644 --- a/config/bashrc +++ b/config/bashrc @@ -166,6 +166,8 @@ alias ftpNas="lftp -u anonymous,passwd -e \"set ftp:ssl-force yes\" gdc.cddis. PS1="" PS1+="\[\033[1;32m\][${debian_chroot:+($debian_chroot)}\u@\h]\[\e[0m\]" +## for nvim +export PATH="$HOME/nvim/nvim/bin/:$HOME/nvim/node/bin/:$PATH" PATH=$PATH:/opt/bin/:~/.local/bin/:/usr/local/lib diff --git a/config/vimrc b/config/vimrc index a69e30d..b1cc337 100644 --- a/config/vimrc +++ b/config/vimrc @@ -177,14 +177,13 @@ Plug 'airblade/vim-gitgutter' Plug 'tpope/vim-surround' Plug 'vim-scripts/c.vim', {'for':['c','cpp']} - Plug 'dense-analysis/ale' let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' -let g:ale_set_loclist = 0 -let g:ale_open_list = 0 -let g:ale_keep_list_window_open = 0 -let g:ale_lint_on_text_changed='never' "文件内容发生变化时不检查 -let g:ale_lint_on_enter = 0 "打开文件时不检查 +let g:ale_set_loclist = 1 +let g:ale_open_list = 1 +let g:ale_keep_list_window_open = 1 +let g:ale_lint_on_text_changed='always' "文件内容发生变化时不检查 +let g:ale_lint_on_enter = 1 "打开文件时不检查 "使用clang对c和c++进行语法检查,对python使用pylint进行语法检查 let g:ale_linters = {