parent
bb43ee4e1d
commit
46ec55b24b
6 changed files with 223 additions and 109 deletions
|
@ -15,6 +15,7 @@
|
|||
enable = "always";
|
||||
};
|
||||
};
|
||||
cargo.features = "all";
|
||||
check = {
|
||||
command = "clippy";
|
||||
};
|
||||
|
@ -69,7 +70,31 @@
|
|||
clangd.enable = true;
|
||||
yamlls.enable = true;
|
||||
lua_ls.enable = true;
|
||||
tinymist.enable = true;
|
||||
tinymist = {
|
||||
enable = true;
|
||||
rootMarkers = [ "main.typ" ];
|
||||
onAttach.function = ''
|
||||
vim.keymap.set("n", "<leader>tp", function()
|
||||
client:exec_cmd({
|
||||
title = "pin",
|
||||
command = "tinymist.pinMain",
|
||||
arguments = { vim.api.nvim_buf_get_name(0) },
|
||||
}, { bufnr = bufnr })
|
||||
end, { desc = "[T]inymist [P]in", noremap = true })
|
||||
|
||||
vim.keymap.set("n", "<leader>tu", function()
|
||||
client:exec_cmd({
|
||||
title = "unpin",
|
||||
command = "tinymist.pinMain",
|
||||
arguments = { vim.v.null },
|
||||
}, { bufnr = bufnr })
|
||||
end, { desc = "[T]inymist [U]npin", noremap = true })
|
||||
'';
|
||||
settings = {
|
||||
formatterMode = "typstyle"; # or "typstfmt"
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue