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

Adding flalign to math environments. #884

Closed
LuisA92 opened this issue Apr 29, 2023 · 4 comments
Closed

Adding flalign to math environments. #884

LuisA92 opened this issue Apr 29, 2023 · 4 comments

Comments

@LuisA92
Copy link

LuisA92 commented Apr 29, 2023

Hello,

Is there anyway to add flalign and flalign* to the list of math environments?

I mainly use texlab on neovim, and I cannot not figure out how to configure the math environment list.

Thanks!

@pfoerster
Copy link
Member

@LuisA92 You can use the texlab.experimental.mathEnvironments setting:

"texlab.experimental.mathEnvironments": ["flalign", "flalign*"]

@LuisA92
Copy link
Author

LuisA92 commented Apr 29, 2023

@pfoerster sorry for the noob question (first time configuring texlab), but where is the config file for texlab located? Do I need to create a new one?

I was using texlab through nvim lspconfig, but I just downloaded texlab locally using cargo install texlab.

@pfoerster
Copy link
Member

@LuisA92 There is no config file, instead you need to pass the configuration to the server through the client (Neovim). In your case, it might look like this (actual syntax might be wrong as I don't use Neovim):

lspconfig.texlab.setup {
  settings = {
    texlab = {
      experimental = {
        mathEnvironments = { 'flalign', 'flalign*' },
      },
    },
  },
}

See here for more information.

@LuisA92
Copy link
Author

LuisA92 commented May 4, 2023

Thank you! This solved my issue.

@LuisA92 LuisA92 closed this as completed May 4, 2023
pfoerster added a commit that referenced this issue May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants