fix: floating window highlights (#149)

This commit is contained in:
yetone
2024-08-22 14:46:08 +08:00
committed by GitHub
parent 9211babf09
commit 8c8d864637
7 changed files with 42 additions and 32 deletions

View File

@@ -159,7 +159,7 @@ function M.notify(msg, opts)
vim.wo[win].conceallevel = 3
vim.wo[win].concealcursor = ""
vim.wo[win].spell = false
local buf = vim.api.nvim_win_get_buf(win)
local buf = api.nvim_win_get_buf(win)
if not pcall(vim.treesitter.start, buf, lang) then
vim.bo[buf].filetype = lang
vim.bo[buf].syntax = lang