mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-04 10:05:06 +02:00
feat(typst): add keymap to define entry point of the project
This commit is contained in:
parent
979a8c6557
commit
3a59edf56c
1 changed files with 13 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue