Should plenary.log provide a way of amending default_config?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start by reading the implementation of plenary.log and locate how default_config is defined and consumed. Determine the public configuration entry point and check any existing logging tests or documentation. Done means users can amend the defaults without replacing log.new, with behavior covered by the relevant tests.
Written by the indexing model from the issue text.
Description
At the moment default_config for plenary is to do this hack:
{
"nvim-lua/plenary.nvim",
config = function()
local log = require("plenary.log")
local original_new = log.new
log.new = function(config, standalone)
local merged_config = vim.tbl_deep_extend("force", { use_console = false }, config or {})
return original_new(merged_config, standalone)
end
end,
},
should we expose default_config somehow so people can modify it?
- Dominant language
- Lua
- Stars
- 3.5k
- Forks
- 340
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvim-lua/plenary.nvim
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
nvim-lua/plenary.nvim#682 ·
-
uniform usage of `os.getenv`Possibly taken @rakotomandimby claimed this 116 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
nvim-lua/plenary.nvim#680 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
nvim-lua/plenary.nvim#675 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
nvim-lua/plenary.nvim#672 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
nvim-lua/plenary.nvim#671 · 1 comment ·
All issues in nvim-lua/plenary.nvim
Similar issues
-
omarchy-menu-keybindings lua bind scan spins at 100% CPU when user config iterates a mocked hl APIOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
omacom/omarchy#14302 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
PathOfBuildingCommunity/PathOfBuilding-PoE2#2560 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Nevcairiel/GatherMate2#62 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100