fix: loading status when first opening aerial win

This commit is contained in:
Steven Arcangeli 2022-08-29 08:49:09 -07:00
parent 1676b4e535
commit 0f65dc41e2
2 changed files with 5 additions and 0 deletions

View file

@ -20,6 +20,7 @@
Aerial aerial.txt /*Aerial*
SymbolKind aerial.txt /*SymbolKind*
aerial aerial.txt /*aerial*
aerial-close-behavior aerial.txt /*aerial-close-behavior*
aerial-commands aerial.txt /*aerial-commands*
aerial-contents aerial.txt /*aerial-contents*
aerial-filetype-map aerial.txt /*aerial-filetype-map*

View file

@ -3,6 +3,7 @@ local bindings = require("aerial.bindings")
local config = require("aerial.config")
local data = require("aerial.data")
local layout = require("aerial.layout")
local loading = require("aerial.loading")
local render = require("aerial.render")
local util = require("aerial.util")
@ -49,6 +50,9 @@ local function create_aerial_buffer(bufnr)
aer_bufnr,
aer_bufnr
))
if not data:has_symbols(bufnr) then
loading.set_loading(aer_bufnr, true)
end
return aer_bufnr
end