remove typst pin
This commit is contained in:
parent
cebf16e11d
commit
c3550fd204
2 changed files with 0 additions and 17 deletions
3
init.lua
3
init.lua
|
@ -172,9 +172,6 @@ end, {
|
||||||
desc = 'Enable autoformat',
|
desc = 'Enable autoformat',
|
||||||
bang = true,
|
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
|
-- autocommands
|
||||||
-- ===
|
-- ===
|
||||||
|
|
|
@ -90,17 +90,3 @@ vim.api.nvim_create_autocmd('ColorScheme', {
|
||||||
vim.cmd [[highlight Comment gui=NONE]] -- no italics for comments
|
vim.cmd [[highlight Comment gui=NONE]] -- no italics for comments
|
||||||
end,
|
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…
Add table
Reference in a new issue