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:
parent
bfb62e6783
commit
065488e57d
1 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue