syntax highlight via treesitter in telescope
While toggling different features on and off, I lost the spiffy syntax highlighting in the Telescope preview window. I got it back thusly:
T282828
Tffa657requireTb4b4b4(Ta5d6ff"Ta5d6fftelescopeTa5d6ff"Tb4b4b4).Td2a8ffsetupTb4b4b4({
T8b949e-- the rest of your telescope config goes here
Te6edf3extensions Tff7b72= Tb4b4b4{
Te6edf3undo Tff7b72= Tb4b4b4{
T8b949e-- telescope-undo.nvim config, see below
Tb4b4b4},
T8b949e-- other extensions:
T8b949e-- file_browser = { ... }
Tb4b4b4},
Te6edf3treesitter Tff7b72= Tff7b72true T8b949e-- (this!)
Tb4b4b4})
This went in the config function passed in in the plugins list.
For wider context, in my T383838init.lua (that is T383838.config/nvim/init.lua):
T282828
Te6edf3pugins Tff7b72= Tb4b4b4{
T8b949e-- content elided
Tb4b4b4{
Ta5d6ff"Ta5d6ffnvim-telescope/telescope.nvimTa5d6ff"Tb4b4b4,
Te6edf3dependencies Tff7b72= Tb4b4b4{
Ta5d6ff"Ta5d6ffnvim-lua/plenary.nvimTa5d6ff"Tb4b4b4,
Ta5d6ff"Ta5d6ffdebugloop/telescope-undo.nvimTa5d6ff"Tb4b4b4,
Ta5d6ff"Ta5d6ffBurntSushi/ripgrepTa5d6ff"Tb4b4b4,
Tb4b4b4},
Te6edf3config Tff7b72= Tff7b72functionTb4b4b4(Tb4b4b4)
Tffa657requireTb4b4b4(Ta5d6ff"Ta5d6fftelescopeTa5d6ff"Tb4b4b4).Td2a8ffsetupTb4b4b4({
T8b949e-- the rest of your telescope config goes here
Te6edf3extensions Tff7b72= Tb4b4b4{
Te6edf3undo Tff7b72= Tb4b4b4{
T8b949e-- telescope-undo.nvim config, see below
Tb4b4b4},
T8b949e-- other extensions:
T8b949e-- file_browser = { ... }
Tb4b4b4},
Te6edf3treesitter Tff7b72= Tff7b72true
Tb4b4b4})
Tffa657requireTb4b4b4(Ta5d6ff"Ta5d6fftelescopeTa5d6ff"Tb4b4b4).Td2a8ffload_extensionTb4b4b4(Ta5d6ff"Ta5d6ffundoTa5d6ff"Tb4b4b4)
Te6edf3vimTb4b4b4.Te6edf3keymapTb4b4b4.Td2a8ffsetTb4b4b4(Ta5d6ff"Ta5d6ffnTa5d6ff"Tb4b4b4, Ta5d6ff"Ta5d6ff<leader>uTa5d6ff"Tb4b4b4, Ta5d6ff"Ta5d6ff<cmd>Telescope undo<cr>Ta5d6ff"Tb4b4b4)
Tff7b72endTb4b4b4,
Tb4b4b4},
T8b949e-- content elided
Tb4b4b4}
Tffa657requireTb4b4b4(Ta5d6ff"Ta5d6fflazyTa5d6ff"Tb4b4b4).Td2a8ffsetupTb4b4b4(Te6edf3pluginsTb4b4b4, Te6edf3lazy_optsTb4b4b4)
Makes more sense in the context of my Lazy Setup notes.
Tags: telescope, nvim
Tags
Navigation