new: nvim: config for typst

This commit is contained in:
qwjyh 2023-12-26 12:59:58 +09:00
parent 18107e2a1b
commit 7f5bfed9f0

View file

@ -97,7 +97,7 @@ require('lazy').setup({
},
{
'kdheepak/cmp-latex-symbols', -- latex math
ft = { 'julia', },
ft = { 'julia', 'typst', },
},
{
"nvim-treesitter/nvim-treesitter",
@ -166,6 +166,7 @@ vim.filetype.add {
saty = 'satysfi',
satyh = 'satysfi',
satyg = 'satysfi',
typ = 'typst',
},
pattern = {
['.*%.satyh%-%a+'] = 'satysfi',
@ -585,6 +586,12 @@ lspconfig.powershell_es.setup {
-- cmd = {'omnisharp'},
-- }
lspconfig.typst_lsp.setup {
on_attach = on_attach,
capabilities = capabilities,
single_file_support = true,
}
local lss = { "pyright", "rust_analyzer", "texlab", "ccls", "clangd", "tsserver", --[["tailwindcss"]] "hls", "cmake",
"csharp_ls", "html", "r_language_server", }
for _, ls in pairs(lss) do