From daac5f5ef44238620a58e3f3538cf697daf849de Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 15 Sep 2023 11:49:19 +0200 Subject: [PATCH] better latex --- lua/plex/plugins/extras/lang/tex.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lua/plex/plugins/extras/lang/tex.lua diff --git a/lua/plex/plugins/extras/lang/tex.lua b/lua/plex/plugins/extras/lang/tex.lua new file mode 100644 index 0000000..e9b017b --- /dev/null +++ b/lua/plex/plugins/extras/lang/tex.lua @@ -0,0 +1,28 @@ +return { + + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts.ensure_installed) == "table" then + vim.list_extend(opts.ensure_installed, { "rust" }) + end + end, + }, + + { + "neovim/nvim-lspconfig", + -- dependencies = { 'b0o/SchemaStore.nvim', version = false }, + opts = { + servers = { + texlab = { + rootDirectory = ".", + auxDirectory = ".", + latexFormatter = "latexindent", + latexindent = { + modifyLineBreaks = true, + }, + }, + }, + }, + }, +}