fix(textobj): use correct config variable, raise log level

Problem: motion keymaps (]], [[, ]t, [t) were never set because
`config.get().debug` referenced an undefined `config` variable,
crashing _setup_buf_mappings before the motion loop. Debug logging
also used vim.log.levels.DEBUG which is filtered by default.

Solution: replace `config` with `cfg` (already in scope) and raise
both debug notify calls from DEBUG to INFO.
This commit is contained in:
Barrett Ruth 2026-02-26 16:26:08 -05:00
parent 4f31ae5f10
commit 22ca3184d8
2 changed files with 3 additions and 4 deletions

View file

@ -8,7 +8,7 @@ local M = {}
---@return nil
local function dbg(...)
if config.get().debug then
vim.notify('[pending.textobj] ' .. string.format(...), vim.log.levels.DEBUG)
vim.notify('[pending.textobj] ' .. string.format(...), vim.log.levels.INFO)
end
end