feat(typst): add keymap to define entry point of the project

This commit is contained in:
Vo Quang Chien 2024-12-20 09:34:10 +07:00
parent 979a8c6557
commit 3a59edf56c

View file

@ -17,6 +17,19 @@ return {
opts = {
servers = {
tinymist = {
keys = {
{
"<leader>cP",
function()
local buf_name = vim.api.nvim_buf_get_name(0)
LazyVim.lsp.execute({
command = "tinymist.pinMain",
arguments = { buf_name },
})
end,
desc = "Pin main file",
},
},
single_file_support = true, -- Fixes LSP attachment in non-Git directories
settings = {
formatterMode = "typstyle",