1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/utils/telescope.lua: use vim.api.nvim_get_option_value() instead of deprectaed vim.api.nvim_buf_get_option()

This commit is contained in:
Henrik Hautakoski 2024-08-26 18:41:15 +02:00
parent f2f77b41cb
commit 7f4ee0aecb

View file

@ -82,7 +82,7 @@ function M.buffer_view(opts)
highlight = opts.indicators.modified.higroup
},
readonly = {
icon = vim.api.nvim_buf_get_option(entry.bufnr, "readonly") and opts.indicators.readonly.icon or " ",
icon = vim.api.nvim_get_option_value("readonly", {buf = entry.bufnr}) and opts.indicators.readonly.icon or " ",
highlight = opts.indicators.readonly.higroup
}
},