Compare commits

..

No commits in common. "7589d38ec70ea98910e8779895231e21eb87ff30" and "7867c6941581b38eb45a6bb49e04beaae88ad64a" have entirely different histories.

3 changed files with 11 additions and 22 deletions

View file

@ -206,11 +206,6 @@ rec {
programs.zathura = { programs.zathura = {
enable = true; enable = true;
options = {
selection-clipboard = "clipboard";
synctex = "true";
synctex-editor-command = "texlab inverse-search -i %{input} -l %{line}";
};
}; };
programs.pandoc = { enable = true; }; programs.pandoc = { enable = true; };

View file

@ -25,21 +25,22 @@
commands = "set buffer filetype typst"; commands = "set buffer filetype typst";
option = ".*\.typ"; option = ".*\.typ";
} }
# {
# # When the filetype=latex option is set in a buffer context (automatically), add a new hook to build the latex file on write
# name = "BufSetOption";
# option = "filetype=latex";
# commands = "hook buffer BufWritePost .* %{ texlab-build }";
# }
{ {
# When the filetype=latex option is set in a buffer context (automatically), add a new hook to build the latex file on write
name = "BufSetOption"; name = "BufSetOption";
option = "filetype=markdown"; option = "filetype=latex";
commands = "add-highlighter buffer/ wrap -word -indent -width 79"; commands = "hook buffer BufWritePost .* %{ texlab-build }";
} }
{ {
name = "BufSetOption"; name = "BufSetOption";
option = "filetype=latex"; option = "filetype=typst";
commands = "add-highlighter buffer/ wrap -word -indent -width 79"; commands = "hook buffer BufWritePost .* %{ nop %sh{ typst compile $kak_buffile } }";
}
{
# When the filetype=markdown option is set (automatically), set word wrap on
name = "WinSetOption";
option = "filetype=markdown";
commands = "set-option window lintcmd \"proselint\"";
} }
{ {
name = "BufSetOption"; name = "BufSetOption";
@ -51,11 +52,6 @@
option = ".*\.Rmd"; option = ".*\.Rmd";
commands = "hook buffer BufWritePost .* %{ nop %sh{ Rscript -e \"rmarkdown::render(\\\"$kak_buffile\\\", 'pdf_document')\" } }"; commands = "hook buffer BufWritePost .* %{ nop %sh{ Rscript -e \"rmarkdown::render(\\\"$kak_buffile\\\", 'pdf_document')\" } }";
} }
{
name = "BufCreate";
option = ".*\.qmd";
commands = "hook buffer BufWritePost .* %{ echo %sh{ quarto render $kak_buffile --to pdf } }";
}
]; ];
keyMappings = [ keyMappings = [
# Define select all # Define select all

View file

@ -392,8 +392,6 @@ command = "texlab"
# #
# Preview configuration for zathura with SyncTeX search. # Preview configuration for zathura with SyncTeX search.
# For other PDF viewers see https://github.com/latex-lsp/texlab/wiki/Previewing # For other PDF viewers see https://github.com/latex-lsp/texlab/wiki/Previewing
build.forwardSearchAfter = true
build.onSave = true
forwardSearch.executable = "zathura" forwardSearch.executable = "zathura"
forwardSearch.args = [ forwardSearch.args = [
"%p", "%p",