aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-26 18:43:45 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-26 18:55:10 +0530
commitf13a1a1c4eab8bdef3760dd71cd7e2b3cc68a3e8 (patch)
treec431eeb6b2de06778c2888d25a1fe5fd67608fec /init.lua
parente8dfd7aa6b0aa37b2260e4593d475f25bbe2bdc4 (diff)
downloadnull-browser-f13a1a1c4eab8bdef3760dd71cd7e2b3cc68a3e8.tar.gz
null-browser-f13a1a1c4eab8bdef3760dd71cd7e2b3cc68a3e8.zip
Add ModeChanged event and display mode in bottom decoration
Diffstat (limited to '')
-rw-r--r--init.lua29
1 files changed, 3 insertions, 26 deletions
diff --git a/init.lua b/init.lua
index 30e939c..851b2f5 100644
--- a/init.lua
+++ b/init.lua
@@ -54,33 +54,10 @@ web.event.add_listener('NotificationReceived', {
end,
})
-local start_clock = function(win_id)
- local timer = web.uv.new_timer()
- timer:start(500, 1000, function()
- local view = web.decorations.bottom.view({ win = win_id })
- if view ~= nil then
- local time = os.date("%X", os.time())
- web.view.set_html('Time: ' .. time, { view = view })
- end
- end)
-end
-
+-- Tabline
require 'null-browser.extras.tabline'.init()
--- Decorations config
--- web.event.add_listener('WinCreated', {
--- callback = function(event)
--- web.decorations.bottom.enable({ win = event.win_id })
--- start_clock(event.win_id)
--- end,
--- })
-
-web.keymap.set('n', '<space>gg', function()
- if web.decorations.bottom.is_enabled({ win = 0 }) then
- web.decorations.bottom.disable({ win = 0 })
- else
- web.decorations.bottom.enable({ win = 0 })
- end
-end)
+-- Statusline
+require 'null-browser.extras.statusline'.init()
print('ending...')