mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-16 02:45:09 +00:00
Get simple rg example to work
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
local state = {}
|
||||
|
||||
state._statuses = {}
|
||||
|
||||
--- Set the status for a particular prompt bufnr
|
||||
function state.set_status(prompt_bufnr, status)
|
||||
state._statuses[prompt_bufnr] = status
|
||||
end
|
||||
|
||||
function state.get_status(prompt_bufnr)
|
||||
return state._statuses[prompt_bufnr] or {}
|
||||
end
|
||||
|
||||
function state.clear_status(prompt_bufnr)
|
||||
state.set_status(prompt_bufnr, nil)
|
||||
end
|
||||
|
||||
return state
|
||||
Reference in New Issue
Block a user