From 7b2e7cb6a831724db70e593752a34733e71c242f Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 20 Oct 2023 12:50:51 +0300 Subject: [PATCH] statusline/lualine: use `nvim_get_option_value()` instead of `nvim_buf_get_option()` Co-authored-by: Frothy <76622149+FrothyMarrow@users.noreply.github.com> --- modules/statusline/lualine/lualine.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/statusline/lualine/lualine.nix b/modules/statusline/lualine/lualine.nix index abfd048..f0aff79 100644 --- a/modules/statusline/lualine/lualine.nix +++ b/modules/statusline/lualine/lualine.nix @@ -187,7 +187,7 @@ in { -- Lsp server name . function() - local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') + local buf_ft = vim.api.nvim_get_option_value('filetype', {}) -- Check if the current buffer type is "toggleterm" if buf_ft == "toggleterm" then