Improved latex experience
This commit is contained in:
parent
f59c523e6f
commit
0af88f4f2f
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue