Update from deprecated to modern functions

This commit is contained in:
Martin Larsson 2025-02-24 14:28:25 +00:00
parent 9dd59b2b0f
commit 3319ead7e7
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ local function window_has_valid_buffer(window)
return false
end
local buf_type = vim.api.nvim_buf_get_option(buf, "buftype")
local buf_type = vim.api.nvim_get_option_value("buftype", { buf = buf })
if buf_type ~= "" then
return false
end