neovim: add typst-preview plugin
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user