tp opens preview
This commit is contained in:
parent
41b6f41daf
commit
dad2edbcf3
1 changed files with 142 additions and 141 deletions
|
@ -126,7 +126,8 @@ DEFAULT_ON_ATTACH = function(client, bufnr)
|
||||||
command = 'tinymist.pinMain',
|
command = 'tinymist.pinMain',
|
||||||
arguments = { vim.api.nvim_buf_get_name(0) },
|
arguments = { vim.api.nvim_buf_get_name(0) },
|
||||||
}, { bufnr = bufnr })
|
}, { bufnr = bufnr })
|
||||||
end, { desc = '[T]oggle [P]in (pin this file as main file)', noremap = true })
|
vim.cmd "TypstPreview"
|
||||||
|
end, { desc = '[T]oggle [P]review (pin this file as main file and open preview)', noremap = true })
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>tu', function()
|
vim.keymap.set('n', '<leader>tu', function()
|
||||||
client:exec_cmd({
|
client:exec_cmd({
|
||||||
|
|
Loading…
Add table
Reference in a new issue