diff --git a/flake.lock b/flake.lock index d9e6b477..816412e5 100644 --- a/flake.lock +++ b/flake.lock @@ -1713,11 +1713,11 @@ "plugin-rustaceanvim": { "flake": false, "locked": { - "lastModified": 1731172933, - "narHash": "sha256-B2AdSgGPANCBbVN+Sd7gvJ16ODZZwv4WSOxnRs3SWnk=", + "lastModified": 1732565373, + "narHash": "sha256-WRaNW0trZYEUKd05Uc+5nP+G81HI14d6lM7/WWz61E0=", "owner": "mrcjkb", "repo": "rustaceanvim", - "rev": "244443311f1c4e34ec1ea7f219a4b682b6ec066e", + "rev": "fee0aa094b0c9f93fffe5a385b3d5d2386c2b072", "type": "github" }, "original": { diff --git a/modules/plugins/languages/typst.nix b/modules/plugins/languages/typst.nix index 45b6a70f..fbb090e8 100644 --- a/modules/plugins/languages/typst.nix +++ b/modules/plugins/languages/typst.nix @@ -21,7 +21,10 @@ lspConfig = '' lspconfig.typst_lsp.setup { capabilities = capabilities, - on_attach = default_on_attach, + on_attach = function(client, bufnr) + -- Disable semantic tokens as a workaround for a semantic token error when using non-english characters + client.server_capabilities.semanticTokensProvider = nil + end, cmd = ${ if isList cfg.lsp.package then expToLua cfg.lsp.package @@ -36,7 +39,10 @@ lspconfig.tinymist.setup { capabilities = capabilities, single_file_support = true, - on_attach = default_on_attach, + on_attach = function(client, bufnr) + -- Disable semantic tokens as a workaround for a semantic token error when using non-english characters + client.server_capabilities.semanticTokensProvider = nil + end, cmd = ${ if isList cfg.lsp.package then expToLua cfg.lsp.package