dotfiles/.config/nvim/lua/core/autocmds.lua

14 lines
318 B
Lua
Raw Normal View History

2022-10-21 06:15:28 -04:00
vim.api.nvim_create_autocmd({"WinEnter","BufEnter"},{
2023-03-12 16:09:11 -04:00
callback = function()
vim.opt.statusline = "%F"
end
2022-10-21 06:15:28 -04:00
})
vim.api.nvim_create_autocmd({"BufEnter","BufWinEnter","WinEnter","CmdwinEnter"},{
2023-03-12 16:09:11 -04:00
callback = function()
if vim.fn.expand("%") == "NvimTree_1" then
vim.opt.statusline = " NvimTree"
end
end,
2022-10-21 06:15:28 -04:00
})