fix: declare filetype when window init is done

This commit is contained in:
kiyan42
2020-06-15 15:30:18 +02:00
parent 8e9650f10a
commit d4e5b1bb51
2 changed files with 10 additions and 9 deletions

View File

@@ -59,6 +59,7 @@ end
function M.window_options()
local opts = {}
opts.winhl = 'EndOfBuffer:LuaTreeEndOfBuffer,Normal:LuaTreeNormal,CursorLine:LuaTreeCursorLine,VertSplit:LuaTreeVertSplit'
if vim.g.lua_tree_side == 'right' then
opts.side = 'L'
opts.open_command = 'h'