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:
Aaron Pham
2024-08-17 16:04:40 -04:00
committed by GitHub
parent f4ab995515
commit af1f51455e
6 changed files with 228 additions and 42 deletions

View File

@@ -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