Merge pull request #22 from qwjyh/typst

[Neovim] config for typst
This commit is contained in:
qwjyh 2024-02-07 21:19:48 +09:00 committed by GitHub
commit 04b62c72b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,2 @@
vim.o.tabstop = 2
vim.o.shiftwidth = 2

View file

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