feat(nvim): add typst lsp

This commit is contained in:
Moritz Böhme 2023-06-25 11:15:08 +02:00
parent 579e711735
commit 7deef6eabd
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
3 changed files with 7 additions and 0 deletions

View file

@ -239,6 +239,8 @@ in
stylua stylua
sumneko-lua-language-server sumneko-lua-language-server
taplo taplo
typst
typst-lsp
yamlfmt yamlfmt
]; ];
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [

View file

@ -234,6 +234,10 @@ with builtins;
cmd = [ "StartupTime" ]; cmd = [ "StartupTime" ];
conf = readFile ./vim-startuptime.lua; conf = readFile ./vim-startuptime.lua;
} }
{
plugin = typst-vim;
ft = [ "typst" "typ" ];
}
{ {
plugin = comment-nvim; plugin = comment-nvim;
event = [ "BufReadPost" "BufNewFile" ]; event = [ "BufReadPost" "BufNewFile" ];

View file

@ -127,6 +127,7 @@ local servers = {
"pylsp", "pylsp",
"ruff_lsp", "ruff_lsp",
"rust_analyzer", "rust_analyzer",
"typst_lsp",
} }
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
lspconfig_setup(lsp, {}) lspconfig_setup(lsp, {})