summaryrefslogtreecommitdiffstats
path: root/after/plugin/notify.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2024-08-09 02:45:31 -0400
committerSquibid <me@zacharyscheiman.com>2024-08-09 02:45:31 -0400
commitc489d393695e90d424f9ae51e35c4d42358e6a71 (patch)
tree12ea97ec4684fd82cd6b73dd127d0137b115837b /after/plugin/notify.lua
parentad76983d969c318e6e234bc82384b4b025d70447 (diff)
downloadnvim-c489d393695e90d424f9ae51e35c4d42358e6a71.tar.gz
nvim-c489d393695e90d424f9ae51e35c4d42358e6a71.tar.bz2
nvim-c489d393695e90d424f9ae51e35c4d42358e6a71.zip
yes there's a bit of java in my nvim config why do you ask?
Diffstat (limited to 'after/plugin/notify.lua')
-rw-r--r--after/plugin/notify.lua32
1 files changed, 0 insertions, 32 deletions
diff --git a/after/plugin/notify.lua b/after/plugin/notify.lua
deleted file mode 100644
index 5d27a7c..0000000
--- a/after/plugin/notify.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local status_ok, notify = pcall(require, "notify")
-if not status_ok then
- return
-end
-
-notify.setup {
- timeout = 3000,
- minimum_width = 35,
- icons = {
- DEBUG = "B",
- ERROR = "x",
- INFO = "i",
- TRACE = "t",
- WARN = "!"
- },
-
- 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' }
- },
- title_pos = 'center',
- border = 'single'
- })
- end,
- render = function(bufnr, notif)
- vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, notif.message)
- end,
-}