Treesitter support
fhill2 opened this issue · 7 comments
fhill2 commented
Can nvimpager show treesitter syntax highlighting?
From my tests below, nvimpager.lua
isn't parsing treesitter syntax highlighting.
Here is what I am using to test:
mkdir -p ~/.local/share/nvimpager/site/pack/packer/opt
ln -s ~/.local/share/nvim/site/pack/packer/opt/nvim-treesitter ~/.local/share/nvimpager/site/pack/packer/opt/nvim-treesitter
~/.config/nvimpager/init.vim
packadd nvim-treesitter
lua << EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = {
"lua"
},
highlight = {
enable = true
},
}
EOF
using nvimpager on a lua file to see if treesitter works:
nvimpager ~/lua.lua # shows nvim syntax highlighting
nvimpager -c ~/lua.lua # shows nvim syntax highlighting
nvimpager -p ~/lua.lua # shows treesitter highlighted text
lucc commented
Sorry, somehow I missed this issue. I just checked and I can reproduce it.
MatthiasGrandl commented
Can also confirm. Also tabstop settings are ignored in cat mode, but work fine in pager mode.