-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conceal on NeoVim not working #2388
Comments
Conceal doesn't work with treesitter, disable it Related "issue": #1968 |
Thanks, @nullchilly, I believe you are quite right. I'm curious if there is any way for me to detect this from VimTeX so that we can warn the user? By the way, @ignamartinoli: there is no reason to set |
@lervag Hi, I forgot to mention that I have conceallevel setted on my local g = require 'utils'.g
local map = require 'utils'.map
local opt = require 'utils'.opt
local loc = require 'utils'.loc
opt.shiftwidth = 2
opt.softtabstop = 2
opt.tabstop = 2
g.tex_conceal = 'abdmgs'
loc.conceallevel = 1
loc.spell = true
opt.spelllang = 'en,es'
map('i', '<C-s>', [[<C-g>u<Esc>[s1z=`]a<c-g>u]]) When I deactivated TreeSitter the concealment actually worked so I guess that was the issue. Still it would be cool to see TreeSitter support in the future. Thanks everyone for the help |
I've pushed an update that
|
@ignamartinoli Nice to know your problem is settled! Notice, again, that you don't need
I'm sorry to say that I will most likely never go there. I'm satisfised with the current implementation and see no specific need to rewrite everything in Tree-sitter. But perhaps someone will do it someday; that is not unlikely. And I will be glad to update VimTeX (both code and docs) to better integrate with Tree-sitter if/when the highlighter is good enough! |
For the general community: Feel free to read the new |
I did read it. Sounds good to me |
Thanks! |
As mentioned here: lervag/vimtex#2388 (comment) ...be sure to disable highlight via `:TSBufDisable highlight`. Maybe make this an autocmd? (Not sure if Treesitter configuration allows us to disable this selectively.)
Description
I tried to set the concealment as shown in this guide with the following entries in the package configuration file
~/.config/nvim/lua/plugins/vimtex.lua
:After that I created a LaTeX file to try it out but unsuccessfully.
Steps to reproduce
Expected behavior
Seeing the concealment
Actual behavior
The concealment isn't working
Do you use a latexmkrc file?
Yes
VimtexInfo
The text was updated successfully, but these errors were encountered: