From c7504282f8ff1d84cd1876d69c40011f5f2642b3 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Fri, 28 Feb 2025 14:27:20 +0200 Subject: [PATCH] just disable logs --- .github/workflows/tests.yml | 2 -- lua/gopher/_utils/log.lua | 2 +- scripts/minimal_init.lua | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 198074f..e448026 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,8 +9,6 @@ on: jobs: tests: - env: - GOPHER_LOG_USE_FILE: false strategy: matrix: os: [ubuntu-latest] diff --git a/lua/gopher/_utils/log.lua b/lua/gopher/_utils/log.lua index f5f3cb4..c7dccd7 100644 --- a/lua/gopher/_utils/log.lua +++ b/lua/gopher/_utils/log.lua @@ -28,7 +28,7 @@ local config = { highlights = true, -- Should write to a file - use_file = vim.env.GOPHER_LOG_USE_FILE ~= "false", + use_file = true, -- Level configuration modes = { diff --git a/scripts/minimal_init.lua b/scripts/minimal_init.lua index 8416917..52cfed8 100644 --- a/scripts/minimal_init.lua +++ b/scripts/minimal_init.lua @@ -40,8 +40,8 @@ require("nvim-treesitter.install").ensure_installed_sync "go" require("gopher").setup { -- ensures that all go deps are installed timeout = 5000, - -- simply log everything - log_level = vim.log.levels.TRACE, + -- disable logs + log_level = vim.log.levels.OFF, } -- setup mini.test only when running headless nvim