diff options
author | Squibid <me@zacharyscheiman.com> | 2023-11-24 21:38:31 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-11-24 21:38:31 -0500 |
commit | f35b13d669867209427449840ff0930a732591dc (patch) | |
tree | 3acb658ec5d01f456c49a097d56f736cbfbbfc7d /after/plugin/notify.lua | |
parent | ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b (diff) | |
download | nvim-f35b13d669867209427449840ff0930a732591dc.tar.gz nvim-f35b13d669867209427449840ff0930a732591dc.tar.bz2 nvim-f35b13d669867209427449840ff0930a732591dc.zip |
more stuff too lazy to seperate
Diffstat (limited to '')
-rw-r--r-- | after/plugin/notify.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/after/plugin/notify.lua b/after/plugin/notify.lua index 36d7885..5d27a7c 100644 --- a/after/plugin/notify.lua +++ b/after/plugin/notify.lua @@ -17,16 +17,16 @@ notify.setup { max_height = function() return math.floor(vim.o.lines * 0.75) end, max_width = function() return math.floor(vim.o.columns * 0.5) end, on_open = function(win, record) + if record.title[1] == '' then record.title[1] = 'Unkown' end vim.api.nvim_win_set_config(win, { title = { - { " "..record.title[1].." ", "Notify"..record.level.."Title" }, + { ' '..record.title[1]..' ', 'Notify'..record.level..'Title' } }, - title_pos = "center", - border = "single", + title_pos = 'center', + border = 'single' }) end, render = function(bufnr, notif) - notif.message[1] = string.format("%s", notif.message[1]) vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, notif.message) end, } |