fix: add version check for nvim_set_option_value and nvim_get_option_value
This commit is contained in:
@@ -3,7 +3,7 @@ local cfg = require('outline.config')
|
||||
local highlight = require('outline.highlight')
|
||||
local providers = require('outline.providers.init')
|
||||
local symbols = require('outline.symbols')
|
||||
local utils = require('outline.utils.init')
|
||||
local utils = require('outline.utils')
|
||||
|
||||
local M = {
|
||||
---@type outline.Sidebar[]
|
||||
@@ -278,7 +278,7 @@ function M.show_status()
|
||||
}
|
||||
|
||||
if buf and vim.api.nvim_buf_is_valid(buf) then
|
||||
ctx.ft = vim.api.nvim_get_option_value('ft', { buf = buf })
|
||||
ctx.ft = utils.buf_get_option(buf, 'ft')
|
||||
ctx.filter = cfg.o.symbols.user_config_filter[ctx.ft]
|
||||
-- 'else' is handled in help.lua
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user