fix: add version check for nvim_set_option_value and nvim_get_option_value

This commit is contained in:
27Onion Nebell
2025-04-18 16:33:09 +08:00
parent 7d2387dc12
commit e93286a489
11 changed files with 110 additions and 51 deletions

View File

@@ -1,4 +1,5 @@
local config = require('outline.config')
local utils = require('outline.utils')
local M = {}
@@ -14,7 +15,7 @@ function M.is_buf_attached_to_lsp(bufnr)
end
function M.is_buf_markdown(bufnr)
return vim.api.nvim_get_option_value('ft', { buf = bufnr }) == 'markdown'
return utils.buf_get_option(bufnr, 'ft') == 'markdown'
end
--- Merge all client token lists in an LSP response