Skip to content

Commit

Permalink
Trim whitespace from level passed to :DapSetLogLevel (#1436)
Browse files Browse the repository at this point in the history
Typing `:DapSetLogLevel DEBUG ` didn't work.
  • Loading branch information
RoadRoller01 authored Feb 6, 2025
1 parent 12b846b commit 52302f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ end

local cmd = api.nvim_create_user_command
cmd('DapSetLogLevel',
---@param opts vim.api.keyset.create_user_command.command_args
function(opts)
require('dap').set_log_level(unpack(opts.fargs))
require('dap').set_log_level(vim.trim(opts.args))
end,
{
nargs = 1,
Expand Down

0 comments on commit 52302f0

Please sign in to comment.