Update: 2024-11-07

This commit is contained in:
2024-11-07 10:00:10 +02:00
parent 1f6468b827
commit a0fd8d93e2
12 changed files with 102 additions and 36 deletions

View File

@@ -3,6 +3,7 @@ local M = {}
M.setup = function(lsp, capabilities)
lsp.tinymist.setup({
capabilities = capabilities,
offset_encoding = "utf-8",
settings = {
exportPdf = "onType",
outputPath = "$root/target/$dir/$name",

View File

@@ -175,7 +175,7 @@ return {
require("plugins.lsp.html").setup(lsp, lsp_capabilities)
end,
tinymist = function()
require("plugins.lsp.typst").setup(lsp, lsp_capabilities)
require("plugins.lsp.tinymist").setup(lsp, lsp_capabilities)
end,
},
})

View File

@@ -8,7 +8,7 @@ return {
javascriptreact = js,
typescript = js,
typescriptreact = js,
python = { "mypy" },
-- python = { "mypy" },
htmldjango = { "djlint" },
html = { "djlint" },
lua = { "selene" },

View File

@@ -4,7 +4,7 @@ return {
opts = {
-- Enabled by default if you do not use `nvim-cmp` set to false
enable_cmp = false,
enable_cmp = true,
-- Endpoint used for getting package versions
index_url = "https://pypi.org/simple/",
-- Fallback endpoint in case 'index_url' fails to find a package

View File

@@ -1,4 +0,0 @@
return {
"rest-nvim/rest.nvim",
cmd = { "Rest" },
}

View File

@@ -2,6 +2,19 @@ return {
"chomosuke/typst-preview.nvim",
ft = "typst",
version = "*",
keys = {
{ "<leader>ot", vim.cmd.TypstPreviewToggle, desc = "Toggle Typst Preview" },
},
cmd = {
"TypstPreviewUpdate",
"TypstPreview",
"TypstPreviewStop",
"TypstPreviewToggle",
"TypstPreviewFollowCursor",
"TypstPreviewNoFollowCursor",
"TypstPreviewFollowCursorToggle",
"TypstPreviewSyncCursor",
},
build = function()
require("typst-preview").update()
end,
@@ -11,7 +24,7 @@ return {
-- Custom format string to open the output link provided with %s
-- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview'
open_cmd = nil,
open_cmd = "xdg-open %s",
-- Setting this to 'always' will invert black and white in the preview
-- Setting this to 'auto' will invert depending if the browser has enable
@@ -26,7 +39,7 @@ return {
-- required.
dependencies_bin = {
-- if you are using tinymist, just set ['typst-preview'] = "tinymist".
["typst-preview"] = "tinymist",
["typst-preview"] = nil,
["websocat"] = nil,
},
-- A list of extra arguments (or nil) to be passed to previewer.