Skip to content

Commit

Permalink
feat: add toggle command for window
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Aug 15, 2024
1 parent b505033 commit 36f997b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local state = require('codemp.state')
local buffers = require('codemp.buffers')
local workspace = require('codemp.workspace')
local utils = require('codemp.utils')
local window = require('codemp.window')

local native = require('codemp.loader').load()

Expand Down Expand Up @@ -29,7 +30,11 @@ local base_actions = {
-- only available if state.client is not nil
local connected_actions = {
id = function()
print(" ::codemp#" .. state.client.id)
print("> codemp::" .. state.client.id)
end,

toggle = function()
window.toggle()
end,

join = function(ws)
Expand Down

0 comments on commit 36f997b

Please sign in to comment.