From 065488e57d0ef3aa2b74446469b97602d3b0c852 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Oct 2023 19:21:29 +0200 Subject: [PATCH] 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. --- nvim/.config/nvim/lua/plugins/config/lsp.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/config/lsp.lua b/nvim/.config/nvim/lua/plugins/config/lsp.lua index d3b6704..93d7b4a 100644 --- a/nvim/.config/nvim/lua/plugins/config/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/config/lsp.lua @@ -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,