Fix variables
This commit is contained in:
@@ -114,7 +114,7 @@ local function open_floating_window()
|
|||||||
LAZYGIT_LOADED = true
|
LAZYGIT_LOADED = true
|
||||||
end
|
end
|
||||||
-- create file window, enter the window, and use the options defined in opts
|
-- create file window, enter the window, and use the options defined in opts
|
||||||
local file_window = api.nvim_open_win(LAZYGIT_BUFFER, true, opts)
|
local _ = api.nvim_open_win(LAZYGIT_BUFFER, true, opts)
|
||||||
|
|
||||||
vim.bo[LAZYGIT_BUFFER].filetype = 'lazygit'
|
vim.bo[LAZYGIT_BUFFER].filetype = 'lazygit'
|
||||||
|
|
||||||
@@ -125,7 +125,7 @@ local function open_floating_window()
|
|||||||
-- use autocommand to ensure that the border_buffer closes at the same time as the main buffer
|
-- use autocommand to ensure that the border_buffer closes at the same time as the main buffer
|
||||||
local cmd = [[autocmd WinLeave <buffer> silent! execute 'hide']]
|
local cmd = [[autocmd WinLeave <buffer> silent! execute 'hide']]
|
||||||
vim.cmd(cmd)
|
vim.cmd(cmd)
|
||||||
local cmd = [[autocmd WinLeave <buffer> silent! execute 'silent bdelete! %s']]
|
cmd = [[autocmd WinLeave <buffer> silent! execute 'silent bdelete! %s']]
|
||||||
vim.cmd(cmd:format(border_buffer))
|
vim.cmd(cmd:format(border_buffer))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user