Skip to content
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

Disable conceal/rendering in latex #44

Open
Gabirel opened this issue Dec 5, 2019 · 8 comments
Open

Disable conceal/rendering in latex #44

Gabirel opened this issue Dec 5, 2019 · 8 comments

Comments

@Gabirel
Copy link
Owner

Gabirel commented Dec 5, 2019

Disable conceal in latex

You may see some rendering issues in your latex files or you just want to use the original plain "text", add the code below into your init.vim

" See: http://vimdoc.sourceforge.net/htmldoc/syntax.html#g:tex_conceal
" Disable all conceal
let g:tex_conceal = ""
" Only disable math and superscripts/subscripts
let g:tex_conceal = "adg"

Explanation:

a = accents/ligatures
d = delimiters
m = math symbols
g = Greek
s = superscripts/subscripts

Reference

@davibarreira
Copy link

I've added this to my init.vim, and I still get the conceal :/ Any idea what might be causing this?

@Gabirel
Copy link
Owner Author

Gabirel commented Dec 17, 2020

I've added this to my init.vim, and I still get the conceal :/ Any idea what might be causing this?

Sorry for the late response.

  • Do you have another init.toml under your ~/.SpaceVim.d/?

  • Could you post your content of your init.vim? More detailed information is much better and more useful to your problem.

  • Which vim/NeoVim version do you use? What is your OS then?

@davibarreira
Copy link

davibarreira commented Dec 17, 2020

Hey, thanks for answering. I'm on Ubuntu 20.04. I do have init.toml on .SpaceVim.d.

Here is the init.toml

#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2020 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================

# All SpaceVim option below [option] section
[options]
    # set spacevim theme. by default colorscheme layer is not loaded,
    # if you want to use more colorscheme, please load the colorscheme
    # layer
    colorscheme = "SpaceVim"
    colorscheme_bg = "dark"
    # Disable guicolors in basic mode, many terminal do not support 24bit
    # true colors
    enable_guicolors = true
    # Disable statusline separator, if you want to use other value, please
    # install nerd fonts
    statusline_separator = "arrow"
    statusline_inactive_separator = "arrow"
    buffer_index_type = 4
    enable_tabline_filetype_icon = true
    enable_statusline_mode = false
    default_indent = 4
    # autocomplete_method = "ycm"


# Enable autocomplete layer
[[layers]]
name = 'autocomplete'
enable = true
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "smart"


[[layers]]
name = 'shell'
default_position = 'top'
default_height = 30

[[layers]]
  name = "colorscheme"
[[layers]]
  name = "lang#julia"
[[layers]]
  name = "lang#python"
[[layers]]
  name = "lang#html"
[[layers]]
  name = "lang#markdown"
[[layers]]
  name = "lang#latex"

Here is my init.vim

execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'

Finally, I use NeoVim 0.4.3.

@Gabirel
Copy link
Owner Author

Gabirel commented Dec 17, 2020

I do have init.toml on .SpaceVim.d.

@davibarreira
Remove init.toml to make sure SpaceVim doesn't override init.vim.

PS: init.vim is supposed to have higher priorities in SpaceVim. Unfortunately, it doesn't.

If you want to continue to use init.toml, try to use bootstrap-functions.
I highly recommend to use init.vim though. Choose as you wish.

@davibarreira
Copy link

davibarreira commented Dec 17, 2020

If I remove my init.toml how do I enable layers and stuff?
I guess I'll look into the bootstrap-functions. I don't know how to use SpaceVim without init.toml

@Gabirel
Copy link
Owner Author

Gabirel commented Dec 17, 2020

If I remove my init.toml how do I enable layers and stuff? I removed the init.toml, and SpaceVim got all buggy. I added back again, and for some reason I'm still getting all the errors O.o

Error detected while processing FileType Autocommands for "*":
E117: Unknown function: LaTeXtoUnicode#Refresh
Error detected while processing BufEnter Autocommands for "*":
E117: Unknown function: LaTeXtoUnicode#Refresh

I'll look into the bootstrap-functions. Thanks.

Simple and quick solution: use init.vim only.

@Gabirel
Copy link
Owner Author

Gabirel commented Dec 17, 2020

@davibarreira Maybe you want to look at this template: #10 (comment)

@davibarreira
Copy link

The error was just because I wasn't refreshing the terminal -.-
Thank you for the answer, @Gabirel . I'll take a look at your template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants