Added spell checker extension for CoC

This commit is contained in:
infidel 2022-04-15 02:10:24 +07:00
parent 2c3e3ecdf4
commit 0804b53540
3 changed files with 3 additions and 22 deletions

View File

@ -49,6 +49,7 @@ CoC now can use tab to navigate completion list. Make sure the target machine ha
- `coc-vimlsp` for VIM script
- `coc-pyright` for Python
- `coc-sh` for SH scripts
- `coc-spell-checker` : General spell checker in EN
### Autocomplete : Completor

View File

@ -17,7 +17,8 @@ user_guide () {
vim_extension () {
vim +PlugInstall +qall
vim -c "CocInstall coc-vimlsp coc-sh coc-python"
vim -c "CocInstall coc-vimlsp coc-sh coc-python coc-spell-checker"
vim -c "CocCommand cSpell.enabledLanguageIds sh" # Add SH Script for spell checking
}
user_install () {

View File

@ -1,21 +0,0 @@
#!/bin/sh
pkg install -y vim tmux bash sudo
if [[ $(id -u) -ne 0 ]]; then
echo "Install as root"
conf_dir="/root"
else
echo "Install as $(whoami)"
conf_dir="/home/$(whoami)"
fi
# Configuration
cp ./.vimrc $conf_dir
cp -r ./.vim $conf_dir
cp -r ./.tmux.conf $conf_dir
mkdir -p "$conf_dir/.tmux/plugins"
[ -d "$conf_dir/.tmux/plugins/tpm" ] || git clone https://github.com/tmux-plugins/tpm /home/$(whoami)/.tmux/plugins/tpm