From 1a3f1c1157e3ee7dcc69a9a47b516c6c1bff0be0 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 4 Nov 2020 01:26:57 +0800 Subject: [PATCH] [bugfix] coc.nvim/shellcheck not working --- nvim/config/coc-settings.json | 2 +- nvim/config/init.vim | 3 ++- nvim/install.sh | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nvim/config/coc-settings.json b/nvim/config/coc-settings.json index 36d9896..bb9386c 100644 --- a/nvim/config/coc-settings.json +++ b/nvim/config/coc-settings.json @@ -4,6 +4,6 @@ "python.linting.flake8Enabled": true, "python.linting.pylintEnabled": false, "diagnostic-languageserver.filetypes": { - "sh": ["shellcheck", "-e", "SC1090"] + "sh": "shellcheck" } } diff --git a/nvim/config/init.vim b/nvim/config/init.vim index e7723bd..83b462f 100644 --- a/nvim/config/init.vim +++ b/nvim/config/init.vim @@ -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 cl :CocList nmap sd :call CocAction('doHover') nmap ol (coc-openlink) + nmap oc :CocCommand " ==== vimspector configuration ==== let g:vimspector_enable_mappings = 'HUMAN' diff --git a/nvim/install.sh b/nvim/install.sh index 29f5e1b..0895143 100755 --- a/nvim/install.sh +++ b/nvim/install.sh @@ -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