blob: 25536859e6af2df5508ddc5300a3eb7767614581 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
local util = require 'lspconfig.util'
local cmd = { 'typst-lsp' }
if vim.fn.has 'win32' == 1 then
cmd = { 'cmd.exe', '/C', 'typst-lsp' }
end
return {
default_config = {
cmd = cmd,
filetypes = { 'typst' },
root_dir = function(fname)
return util.find_git_ancestor(fname)
end,
},
docs = {
description = [[
https://github.com/nvarner/typst-lsp
Language server for Typst.
]],
},
}
|