Update from deprecated to modern functions
This commit is contained in:
parent
9dd59b2b0f
commit
3319ead7e7
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue