feat(ui): add envvar popup with warnings (#54)
* feat: add support for input popup of envvar Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * chore: update README and ignore certain filetypes for popup Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * fix: readme doesn't support nested callout Signed-off-by: Aaron Pham <contact@aarnphm.xyz> --------- Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
@@ -132,6 +132,16 @@ function Sidebar:intialize()
|
||||
relative = { type = "win", winid = fn.bufwinid(self.view.buf) },
|
||||
})
|
||||
|
||||
self.renderer:add_mappings({
|
||||
{
|
||||
mode = { "n" },
|
||||
key = "q",
|
||||
handler = function()
|
||||
self.renderer:close()
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
self.renderer:on_mount(function()
|
||||
self.winid.result = self.renderer:get_component_by_id("result").winid
|
||||
self.winid.input = self.renderer:get_component_by_id("input").winid
|
||||
|
||||
Reference in New Issue
Block a user