remove typst pin

This commit is contained in:
cscherr 2025-05-05 10:46:13 +02:00
parent cebf16e11d
commit c3550fd204
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7
2 changed files with 0 additions and 17 deletions

View file

@ -172,9 +172,6 @@ end, {
desc = 'Enable autoformat',
bang = true,
})
vim.api.nvim_create_user_command('TypstPinMain', function()
vim.lsp.buf.execute_command { command = 'tinymist.pinMain', arguments = { vim.api.nvim_buf_get_name(0) } }
end, { nargs = 0 })
-- autocommands
-- ===

View file

@ -90,17 +90,3 @@ 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,
})