1
Fork 0

Improved latex experience

This commit is contained in:
Matei Adriel 2023-04-17 23:33:56 +03:00
parent f59c523e6f
commit 0af88f4f2f
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View file

@ -129,6 +129,10 @@ local abolishAbbreviations = {
{ "vx{,s}", "vert{ex,ices}" }, { "vx{,s}", "vert{ex,ices}" },
{ "eg{,s}", "edge{}" }, { "eg{,s}", "edge{}" },
-- Linear systems
-- Note: we must add the space inside the {} in order for capitalization to work!
{ "{{s,o,l},}deq{s,}", "{{scalar,ordinary,linear} ,}differential equation{}" },
-- Graph theory function syntax: -- Graph theory function syntax:
-- gt[function]{graph}{modifier} -- gt[function]{graph}{modifier}
-- - function: -- - function:
@ -226,3 +230,5 @@ vim.keymap.set(
"<cmd>VimtexCompile<cr>", "<cmd>VimtexCompile<cr>",
{ desc = "Compile current buffer using vimtex", buffer = true } { desc = "Compile current buffer using vimtex", buffer = true }
) )
vim.opt_local.list = false # The lsp usese tabs for formatting

View file

@ -19,6 +19,7 @@ function M.setup()
vim.opt.expandtab = true -- Use spaces for the tab char vim.opt.expandtab = true -- Use spaces for the tab char
vim.opt.shiftwidth = 2 -- Size of an indent vim.opt.shiftwidth = 2 -- Size of an indent
vim.opt.tabstop = 2 -- Size of tab character
vim.opt.shiftround = true -- When using < or >, rounds to closest multiple of shiftwidth vim.opt.shiftround = true -- When using < or >, rounds to closest multiple of shiftwidth
vim.opt.smartindent = true -- Insert indents automatically vim.opt.smartindent = true -- Insert indents automatically