neovim: add typst-preview plugin

This commit is contained in:
2026-03-31 22:02:29 +03:00
parent 9c1cff4e30
commit e2001b4fc9
4 changed files with 17 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ null_ls.setup({
null_formatting.gofmt,
null_formatting.goimports,
null_formatting.shfmt,
null_formatting.typstyle,
},
on_attach = function()
local group = vim.api.nvim_create_augroup("NullLsLspFormatting", { clear = true })
@@ -59,7 +60,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
vim.keymap.set("v", "<leader>.", vim.lsp.buf.range_code_action, opts)
end
local codelens_ignored_clients = { "yaml" }
local codelens_ignored_clients = { "yaml", "tinymist" }
if
client

View File

@@ -73,3 +73,10 @@ vim.lsp.config.yaml = {
filetypes = { "yaml" },
}
vim.lsp.enable("yaml")
-- typst
vim.lsp.config.tinymist = {
cmd = { "tinymist", "lsp" },
filetypes = { "typst" },
}
vim.lsp.enable("tinymist")