1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-19 15:31:13 +01:00

plugins/lualine: drop deprecated nvim_buf_get_option

Use vim.bo[0].filetype instead of vim.api.nvim_buf_get_option().
This commit is contained in:
Austin Horstman 2025-12-16 19:41:30 -06:00 committed by Gaétan Lepage
parent 53e19bd5e9
commit 908921b771

View file

@ -291,7 +291,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
__unkeyed-1.__raw = '' __unkeyed-1.__raw = ''
function() function()
local msg = "" local msg = ""
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') local buf_ft = vim.bo[0].filetype
local clients = vim.lsp.get_active_clients() local clients = vim.lsp.get_active_clients()
if next(clients) == nil then if next(clients) == nil then
return msg return msg