diff --git a/dots/.config/nvim/lua/plugins/configs/statuscol.lua b/dots/.config/nvim/lua/plugins/configs/statuscol.lua index 09f9e1fa..2b8c6dc7 100644 --- a/dots/.config/nvim/lua/plugins/configs/statuscol.lua +++ b/dots/.config/nvim/lua/plugins/configs/statuscol.lua @@ -25,15 +25,7 @@ return { }) local std_condition = function(args) - local buf_opt = function(option_name) - local value = vim.api.nvim_get_option_value(option_name, { buf = args.buf }) - if value == "" then - return nil - else - return value - end - end - return (not buf_opt("bufhidden")) + return #vim.api.nvim_get_option_value("bufhidden", { buf = args.buf }) == 0 end return {