From d5929917c7fccf536f974259a796197a0cfb7152 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sat, 17 Apr 2021 09:47:24 -0600 Subject: [PATCH] explicitly specify path to python for coc, enable autoImportCompletions --- .envrc | 2 ++ .vim/coc-settings.json | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.envrc b/.envrc index 4fa04e3..ab0df0e 100644 --- a/.envrc +++ b/.envrc @@ -7,4 +7,6 @@ watch_file pyproject.toml watch_file poetry.lock watch_file shell.nix +set POETRY_VIRTUALENVS_IN_PROJECT + unset PS1 diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json index cc71be6..e04bd09 100644 --- a/.vim/coc-settings.json +++ b/.vim/coc-settings.json @@ -1,8 +1,9 @@ { - "python.analysis.openFilesOnly": false, + "python.analysis.autoImportCompletions": true, "python.linting.pylintEnabled": false, "python.linting.flake8Enabled": true, "python.linting.enabled": true, "python.linting.mypyEnabled": true, - "python.formatting.provider": "black" + "python.formatting.provider": "black", + "python.pythonPath": "/home/sumner/projects/sublime-music/sublime-music/.venv/bin/python" }