[bugfix] coc.nvim/shellcheck not working

This commit is contained in:
Klesh Wong 2020-11-04 01:26:57 +08:00
parent 07162cac1b
commit 1a3f1c1157
3 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,6 @@
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"diagnostic-languageserver.filetypes": {
"sh": ["shellcheck", "-e", "SC1090"]
"sh": "shellcheck"
}
}

View File

@ -107,7 +107,7 @@ Plug 'morhetz/gruvbox'
Plug 'dag/vim-fish', { 'for': 'fish' }
Plug 'chrisbra/Colorizer'
Plug 'alvan/vim-closetag', { 'for': ['vue', 'html', 'xml'] }
Plug 'airblade/vim-gitgutter'
"Plug 'airblade/vim-gitgutter'
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'junegunn/fzf'
call plug#end()
@ -139,6 +139,7 @@ if $VIM_MODE == 'enhanced'
nmap <silent> <leader>cl :CocList<CR>
nmap <silent> <leader>sd :call CocAction('doHover')<CR>
nmap <silent> <leader>ol <Plug>(coc-openlink)
nmap <silent> <leader>oc :CocCommand<CR>
" ==== vimspector configuration ====
let g:vimspector_enable_mappings = 'HUMAN'

View File

@ -5,6 +5,7 @@ DIR=$(readlink -f "$(dirname "$0")")
# check dependencies
! command -v yarnpkg && "$ROOT/nodejs/install.sh"
! command -v pip && "$ROOT/python/install.sh"
# install nvim
case "$PM" in
@ -12,9 +13,11 @@ case "$PM" in
sudo add-apt-repository ppa:neovim-ppa/stable -y
sudo apt update
sudo apt install -y neovim
sudo pip3 install pyvim neovim
;;
pacman)
sudo pacman -S --needed neovim
sudo pip install pyvim neovim
;;
esac