diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-15 20:39:50 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-15 20:39:50 +0100 |
| commit | fdff42f1bec30d7eb60b65bb0d4a925b5bd8e3ed (patch) | |
| tree | 1d53e43c506c99a934bc370b574e2844c0363e83 /lua/user | |
| parent | f3403c95fca6779a766763b040b7ae9650f39c33 (diff) | |
added autocommand to build latex when saved
Diffstat (limited to 'lua/user')
| -rw-r--r-- | lua/user/autocommands.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/user/autocommands.lua b/lua/user/autocommands.lua index 49cce6f..76d2002 100644 --- a/lua/user/autocommands.lua +++ b/lua/user/autocommands.lua @@ -95,3 +95,13 @@ vim.api.nvim_create_autocmd({ "BufWinEnter" }, { vim.cmd "checktime" end, }) + +-- -- Latex keybindings +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + pattern = { "*.tex" }, + callback = function() + vim.cmd [[ + TexlabBuild + ]] + end, +}) |
