nvim: Remove debug printing of activated python venv

Removed notification on activating a python venv.
It should just work, transparent to the user and we do
not need a big ol' notification each time we enter
a file.
This commit is contained in:
Marty Oehme 2023-10-02 19:21:29 +02:00
parent bfb62e6783
commit 065488e57d
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -131,9 +131,9 @@ local python_path
lspconfig.pyright.setup({ lspconfig.pyright.setup({
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
if python_path == nil then if python_path == nil then
python_path, _ = require("util").get_python_venv(client.config.root_dir) python_path, _ = require("util").get_python_venv(client.config.root_dir)
end end
print(string.format("[PYTHON VENV]: %s", vim.inspect(python_path))) -- print(string.format("[PYTHON VENV]: %s", vim.inspect(python_path)))
client.config.settings.python.pythonPath = python_path client.config.settings.python.pythonPath = python_path
on_attach(client, bufnr) on_attach(client, bufnr)
end, end,
@ -141,9 +141,9 @@ lspconfig.pyright.setup({
lspconfig.ruff_lsp.setup({ lspconfig.ruff_lsp.setup({
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
if python_path == nil then if python_path == nil then
python_path, _ = require("util").get_python_venv(client.config.root_dir) python_path, _ = require("util").get_python_venv(client.config.root_dir)
end end
print(string.format("[PYTHON VENV]: %s", vim.inspect(python_path))) -- print(string.format("[PYTHON VENV]: %s", vim.inspect(python_path)))
client.config.settings.python.pythonPath = python_path client.config.settings.python.pythonPath = python_path
on_attach(client, bufnr) on_attach(client, bufnr)
end, end,