Skip to content

Commit

Permalink
fix: set buffer name after it's created
Browse files Browse the repository at this point in the history
  • Loading branch information
xeluxee committed Apr 23, 2022
1 parent 1a40d7d commit 64db090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/aerial/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ local function create_aerial_window(bufnr, aer_bufnr, direction, existing_win)
-- Set the filetype only after we enter the buffer so that FileType autocmds
-- behave properly
api.nvim_buf_set_option(aer_bufnr, "filetype", "aerial")
-- Set the buffer name
api.nvim_buf_set_name(aer_bufnr, "Aerial")

local aer_winid = api.nvim_get_current_win()
util.go_win_no_au(my_winid)
Expand Down

0 comments on commit 64db090

Please sign in to comment.