Skip to content

Commit

Permalink
refactor: remove deprecated direction in toggle_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 committed Jan 27, 2023
1 parent 51bd372 commit 34569cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/metals/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ local commands = {}

-- Doesn't really fit in here, but we need to use it for the commands down below
-- and also in metals.lua, so to avoid a cyclical dep we just put it in here
local function toggle_logs(direction)
if direction then
log.warn_and_show("toggle_logs no longer takes a parameter. Please remove it.")
end

local function toggle_logs()
local bufs = api.nvim_list_bufs()

for _, buf in ipairs(bufs) do
Expand Down

0 comments on commit 34569cc

Please sign in to comment.