[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.flake8Enabled": true,
"python.linting.pylintEnabled": false, "python.linting.pylintEnabled": false,
"diagnostic-languageserver.filetypes": { "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 'dag/vim-fish', { 'for': 'fish' }
Plug 'chrisbra/Colorizer' Plug 'chrisbra/Colorizer'
Plug 'alvan/vim-closetag', { 'for': ['vue', 'html', 'xml'] } Plug 'alvan/vim-closetag', { 'for': ['vue', 'html', 'xml'] }
Plug 'airblade/vim-gitgutter' "Plug 'airblade/vim-gitgutter'
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'junegunn/fzf' Plug 'junegunn/fzf'
call plug#end() call plug#end()
@ -139,6 +139,7 @@ if $VIM_MODE == 'enhanced'
nmap <silent> <leader>cl :CocList<CR> nmap <silent> <leader>cl :CocList<CR>
nmap <silent> <leader>sd :call CocAction('doHover')<CR> nmap <silent> <leader>sd :call CocAction('doHover')<CR>
nmap <silent> <leader>ol <Plug>(coc-openlink) nmap <silent> <leader>ol <Plug>(coc-openlink)
nmap <silent> <leader>oc :CocCommand<CR>
" ==== vimspector configuration ==== " ==== vimspector configuration ====
let g:vimspector_enable_mappings = 'HUMAN' let g:vimspector_enable_mappings = 'HUMAN'

View File

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