nvim + pi / bi-directional communication
Something went wrong. Try again.
123456789101112131415161718192021222324252627local M = {}
---@class pi.rpc.State---@field socket? string Socket path---@field cwd? string Working directory---@field pid? number Process ID---@field lockfile? string Lockfile path
---@type pi.rpc.Statelocal state = {}
---@param updates pi.rpc.Statefunction M.set(updates) state = vim.tbl_extend('force', state, updates)end
---@return pi.rpc.Statefunction M.get() return stateend
function M.clear() state = {}end
return M