Get simple rg example to work
This commit is contained in:
18
lua/telescope/state.lua
Normal file
18
lua/telescope/state.lua
Normal file
@@ -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