mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-04 15:07:34 +00:00
feat(util): pass lang to vim.notify
so that snacks notifier can render the ft. Closes #1919
This commit is contained in:
parent
f15a93907d
commit
c6a57a3534
1 changed files with 1 additions and 0 deletions
|
@ -374,6 +374,7 @@ function M.notify(msg, opts)
|
||||||
local lang = opts.lang or "markdown"
|
local lang = opts.lang or "markdown"
|
||||||
local n = opts.once and vim.notify_once or vim.notify
|
local n = opts.once and vim.notify_once or vim.notify
|
||||||
n(msg, opts.level or vim.log.levels.INFO, {
|
n(msg, opts.level or vim.log.levels.INFO, {
|
||||||
|
ft = lang,
|
||||||
on_open = function(win)
|
on_open = function(win)
|
||||||
local ok = pcall(function()
|
local ok = pcall(function()
|
||||||
vim.treesitter.language.add("markdown")
|
vim.treesitter.language.add("markdown")
|
||||||
|
|
Loading…
Add table
Reference in a new issue