fix: replace deprecated API in doc

This commit is contained in:
27Onion Nebell
2025-04-12 12:31:56 +08:00
parent 1460136dd0
commit b86844d3d3
4 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ local M = {
---@param config table?
---@return boolean ft_is_markdown
function M.supports_buffer(bufnr, config)
local ft = vim.api.nvim_buf_get_option(bufnr, 'ft')
local ft = vim.api.nvim_get_option_value('ft', { buf = bufnr })
if config and config.filetypes then
for _, ft_check in ipairs(config.filetypes) do
if ft_check == ft then