Skip to content

Instantly share code, notes, and snippets.

@gsuuon
Last active December 15, 2023 05:23
Show Gist options
  • Save gsuuon/9ee105991882290624dee665f98dca81 to your computer and use it in GitHub Desktop.
Save gsuuon/9ee105991882290624dee665f98dca81 to your computer and use it in GitHub Desktop.
Send system notifications from neovim
local function notify(text)
vim.loop.new_tty(2, false):write('\x1b]9;' .. text .. '\07')
end
notify('hey')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment