Removed manual tex building.
Added wrap in Kakoune for text types.
This commit is contained in:
parent
5c247da3d9
commit
7589d38ec7
|
|
@ -25,22 +25,21 @@
|
||||||
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 }";
|
||||||
|
# }
|
||||||
|
{
|
||||||
|
name = "BufSetOption";
|
||||||
|
option = "filetype=markdown";
|
||||||
|
commands = "add-highlighter buffer/ wrap -word -indent -width 79";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
# 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=latex";
|
option = "filetype=latex";
|
||||||
commands = "hook buffer BufWritePost .* %{ texlab-build }";
|
commands = "add-highlighter buffer/ wrap -word -indent -width 79";
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "BufSetOption";
|
|
||||||
option = "filetype=typst";
|
|
||||||
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";
|
||||||
|
|
@ -52,6 +51,11 @@
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue