statusline/lualine: use nvim_get_option_value() instead of nvim_buf_get_option()

Co-authored-by: Frothy <76622149+FrothyMarrow@users.noreply.github.com>
This commit is contained in:
raf 2023-10-20 12:50:51 +03:00 committed by GitHub
parent ff5555e3c8
commit 7b2e7cb6a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ in {
-- Lsp server name . -- Lsp server name .
function() 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" -- Check if the current buffer type is "toggleterm"
if buf_ft == "toggleterm" then if buf_ft == "toggleterm" then