diff options
author | Yigit Sever | 2024-11-26 14:19:51 +0100 |
---|---|---|
committer | Yigit Sever | 2024-11-26 14:19:51 +0100 |
commit | b7925fa3f4c7ddd8ddf89b6c345fcdc585a91208 (patch) | |
tree | adcb92071b727e2cd83e261b0a5c1db33a04aae8 /.config/nvim/lua/plugins | |
parent | 5254be1211f44451333a7067afc26344eae7b488 (diff) | |
download | dotfiles-b7925fa3f4c7ddd8ddf89b6c345fcdc585a91208.tar.gz dotfiles-b7925fa3f4c7ddd8ddf89b6c345fcdc585a91208.tar.bz2 dotfiles-b7925fa3f4c7ddd8ddf89b6c345fcdc585a91208.zip |
nvim: add typst lspconfig
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 41616de..2fa92c2 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -80,6 +80,19 @@ return { | |||
80 | } | 80 | } |
81 | end | 81 | end |
82 | 82 | ||
83 | -- typst/tinymist | ||
84 | require("lspconfig")["tinymist"].setup({ | ||
85 | on_attach = on_attach, | ||
86 | capabilities = capabilities, | ||
87 | single_file_support = true, | ||
88 | root_dir = function() | ||
89 | return vim.fn.getcwd() | ||
90 | end, | ||
91 | settings = { | ||
92 | formatterMode = "typstyle", | ||
93 | } | ||
94 | }) | ||
95 | |||
83 | -- lua | 96 | -- lua |
84 | require("lspconfig")["lua_ls"].setup({ | 97 | require("lspconfig")["lua_ls"].setup({ |
85 | on_attach = on_attach, | 98 | on_attach = on_attach, |