I am using trouble.nvim and lualine.nvim. The function information is added into section c of lualine. When preview the references in touble, it works when the file is already actually opened in a buffer. But it doesn't work when the file is only opened in trouble's preview buffer. If I use nvim_treesitter#statusline instead, it can work.
I am using trouble.nvim and lualine.nvim. The function information is added into section c of lualine. When preview the references in touble, it works when the file is already actually opened in a buffer. But it doesn't work when the file is only opened in trouble's preview buffer. If I use nvim_treesitter#statusline instead, it can work.