From 640260d7c2d98779cab89b1e7088ab14ea354a02 Mon Sep 17 00:00:00 2001 From: BiiChris <138138425+BiiChris@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:12:18 +0000 Subject: [PATCH] refactor: Replace deprecated function in evil_lualine example (#1146) Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com> --- examples/evil_lualine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/evil_lualine.lua b/examples/evil_lualine.lua index 6fdb8379c..4ef6a4502 100644 --- a/examples/evil_lualine.lua +++ b/examples/evil_lualine.lua @@ -159,7 +159,7 @@ ins_left { -- Lsp server name . function() local msg = 'No Active Lsp' - local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') + local buf_ft = vim.api.nvim_get_option_value('filetype', { buf = 0 }) local clients = vim.lsp.get_clients() if next(clients) == nil then return msg