From 0af88f4f2f50abf8c2f79d0c949954e3d6b23bb3 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 17 Apr 2023 23:33:56 +0300 Subject: [PATCH] Improved latex experience --- dotfiles/neovim/ftplugin/tex.lua | 6 ++++++ dotfiles/neovim/lua/my/options.lua | 1 + 2 files changed, 7 insertions(+) diff --git a/dotfiles/neovim/ftplugin/tex.lua b/dotfiles/neovim/ftplugin/tex.lua index 8bc3973..923900f 100644 --- a/dotfiles/neovim/ftplugin/tex.lua +++ b/dotfiles/neovim/ftplugin/tex.lua @@ -129,6 +129,10 @@ local abolishAbbreviations = { { "vx{,s}", "vert{ex,ices}" }, { "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: -- gt[function]{graph}{modifier} -- - function: @@ -226,3 +230,5 @@ vim.keymap.set( "VimtexCompile", { desc = "Compile current buffer using vimtex", buffer = true } ) + +vim.opt_local.list = false # The lsp usese tabs for formatting diff --git a/dotfiles/neovim/lua/my/options.lua b/dotfiles/neovim/lua/my/options.lua index 3e7c767..dec0b2e 100644 --- a/dotfiles/neovim/lua/my/options.lua +++ b/dotfiles/neovim/lua/my/options.lua @@ -19,6 +19,7 @@ function M.setup() vim.opt.expandtab = true -- Use spaces for the tab char 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.smartindent = true -- Insert indents automatically