mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 18:25:57 +01:00
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:
parent
ff5555e3c8
commit
7b2e7cb6a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue