GithubHelp home page GithubHelp logo

Comments (3)

martipares avatar martipares commented on June 26, 2024 1

Thank you, this helps me a lot.
I will try this configuration with indentation and the mappings enabled.

from vimtex.

lervag avatar lervag commented on June 26, 2024 1

Glad to help!

from vimtex.

lervag avatar lervag commented on June 26, 2024

My objective is to conceal a newcommand \Yo whit .

My current configuration for vimtex is this: (~/.../vimtex.lua)

I believe this should be a simplified and improved configuration with the desired added syntax rule

return {
  "lervag/vimtex",
  lazy = false,
  init = function()
    vim.g.vimtex_view_method = 'zathura_simple'
    vim.g.vimtex_quickfix_mode = 0
    vim.g.vimtex_mappings_enabled = 0
    vim.g.vimtex_indent_enabled = 0
    vim.g.vimtex_context_pdf_viewer = 'okular'
    vim.g.vimtex_log_ignore = ({
      'Underfull',
      'Overfull',
      'specifier changed to',
      'Token not allowed in a PDF string',
    })
    vim.g.vimtex_syntax_custom_cmds = {
      {
        name = 'Yo',
        mathmode = true,
        concealchar = ''
      },
    }
  end,
}

By the way, are you sure you want to disable indentation and the mappings? As a newcomer, I would think it useful to at least have the default mappings.

from vimtex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.