chore: Added support for lhs compile with vimtex
This commit is contained in:
2
.config/nvim/ftplugin/lhaskell.lua
Normal file
2
.config/nvim/ftplugin/lhaskell.lua
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
vim.bo.filetype = "tex"
|
||||||
|
vim.bo.syntax = "lhaskell"
|
||||||
@@ -11,9 +11,6 @@ end
|
|||||||
capabilities = vim.lsp.protocol.make_client_capabilities()
|
capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
|
|
||||||
|
|
||||||
lspconfig.hls.setup{
|
lspconfig.hls.setup{}
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities
|
|
||||||
}
|
|
||||||
|
|
||||||
lspconfig.rust_analyzer.setup{}
|
lspconfig.rust_analyzer.setup{}
|
||||||
|
|||||||
14
.latexmkrc
Normal file
14
.latexmkrc
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Use subroutine to do preprocessing and running pdflatex
|
||||||
|
$pdflatex = 'internal mylatex %B %O';
|
||||||
|
sub mylatex {
|
||||||
|
my $base = shift @_;
|
||||||
|
my $tex = "$base.tex";
|
||||||
|
|
||||||
|
# Run the preprocessor
|
||||||
|
system('lhs2TeX', '--poly', '-o', $tex, "$base.lhs") == 0 or return $?;
|
||||||
|
# Run pdflatex
|
||||||
|
my $return = system('pdflatex', @_, $tex);
|
||||||
|
system "echo INPUT $base.lhs >> $aux_dir1$base.fls";
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user