Can this functionality be implemented utilising API?
I do not think so
Is your feature request related to a problem? Please describe.
If I have disabled vim.opt.cursorline then NvimTree wont highlight active buffer.
Describe the solution you'd like
Custom highlight - not dependent on nvim, but it would only depends on NvimTree config
Describe alternatives you've considered
We can make hack with autocmd that enables cursorline for NvimTree, but is not 'fun'.