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
1 changed files with 6 additions and 6 deletions

View File

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