aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorAldric.li <31800073+Parsifa1@users.noreply.github.com>2024-03-18 14:08:56 +0800
committerGitHub <noreply@github.com>2024-03-18 14:08:56 +0800
commite363cd7da99fd6d1533c81e2418a89e0ae19f2a3 (patch)
tree3b36cce866a7e689a7203a214bf3dd615cc7a5ca /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.tar
nvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.tar.gz
nvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.tar.bz2
nvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.tar.lz
nvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.tar.xz
nvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.tar.zst
nvim-lspconfig-e363cd7da99fd6d1533c81e2418a89e0ae19f2a3.zip
feat: add tinymist (#3075)
* feat: add tinymist * fix(tinymist): typo * fix(tinymist): typo * feat: add .git detect * fix: no single file support * fix: true to false * fix: change reviewed Co-authored-by: Raphael <glephunter@gmail.com> --------- Co-authored-by: Raphael <glephunter@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/tinymist.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/tinymist.lua b/lua/lspconfig/server_configurations/tinymist.lua
new file mode 100644
index 00000000..c2559720
--- /dev/null
+++ b/lua/lspconfig/server_configurations/tinymist.lua
@@ -0,0 +1,16 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'tinymist' },
+ filetypes = { 'typst' },
+ root_dir = util.find_git_ancestor,
+ single_file_support = false,
+ },
+ docs = {
+ description = [[
+https://github.com/Myriad-Dreamin/tinymist
+An integrated language service for Typst [taɪpst]. You can also call it "微霭" [wēi ǎi] in Chinese.
+ ]],
+ },
+}