pin typst
This commit is contained in:
parent
69b08e4234
commit
044dc613c8
|
@ -79,3 +79,17 @@ vim.api.nvim_create_autocmd('ColorScheme', {
|
|||
vim.cmd [[highlight Comment gui=NONE]] -- no italics for comments
|
||||
end,
|
||||
})
|
||||
|
||||
-- pin main.typ for typst projects
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
group = augroup,
|
||||
pattern = {
|
||||
'typst',
|
||||
},
|
||||
callback = function()
|
||||
-- pin the main file
|
||||
vim.lsp.buf.execute_command { command = 'tinymist.pinMain', arguments = { vim.api.nvim_buf_get_name(0) } }
|
||||
-- -- unpin the main file
|
||||
-- vim.lsp.buf.execute_command { command = 'tinymist.pinMain', arguments = { nil } }
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue