Skip to content

Commit 21acfa1

Browse files
committed
add python language server
1 parent 719ec1e commit 21acfa1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tools/neovim/coc-settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"suggest.timeout": 500,
55
"suggest.minTriggerInputLength": 2,
66
"suggest.echodocSupport": true,
7-
"suggest.enablePreview": true
7+
"suggest.enablePreview": false
88
}

tools/neovim/ubuntu_init.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ function leetcode_ins(){
1616
}
1717

1818
function python_ins(){
19-
echo "python ins"
19+
! ( grep -F "python.linting.enabled" ~/.config/nvim/coc-settings.json ) && \
20+
sed -i '/suggest.timeout/i "python.linting.enabled": false,' ~/.config/nvim/coc-settings.json
2021
}
2122
function java_ins(){
2223
echo "java ins"
@@ -164,6 +165,10 @@ if [ "Y$OPT_JAVA" == "Yyes" ];then
164165
nvim "+CocInstall -sync coc-java" +qall
165166
fi
166167

168+
if [ "Y$OPT_PYTHON" == "Yyes" ];then
169+
nvim "+CocInstall -sync coc-python" +qall
170+
fi
171+
167172
! which ctags >/dev/null && \
168173
git clone https://github.com/universal-ctags/ctags.git &&\
169174
cd ctags && ./autogen.sh && ./configure && make && make install &&\

0 commit comments

Comments
 (0)