From 26bb56eba8de39a2ba8bdea3cb906b6e0d74b996 Mon Sep 17 00:00:00 2001 From: Soliprem Date: Tue, 26 Nov 2024 04:49:57 +0100 Subject: [PATCH 1/3] languages/typst: fixed callback error with non-english characters --- modules/plugins/languages/typst.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/plugins/languages/typst.nix b/modules/plugins/languages/typst.nix index 45b6a70f..510b70cd 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 if the issue persists + 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 if the issue persists + client.server_capabilities.semanticTokensProvider = nil + end, cmd = ${ if isList cfg.lsp.package then expToLua cfg.lsp.package From d821882f0024f7f27918666261efe5bc6070b168 Mon Sep 17 00:00:00 2001 From: Soliprem <73885403+Soliprem@users.noreply.github.com> Date: Tue, 26 Nov 2024 05:33:54 +0100 Subject: [PATCH 2/3] typst: complying with review --- modules/plugins/languages/typst.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/languages/typst.nix b/modules/plugins/languages/typst.nix index 510b70cd..fbb090e8 100644 --- a/modules/plugins/languages/typst.nix +++ b/modules/plugins/languages/typst.nix @@ -22,7 +22,7 @@ lspconfig.typst_lsp.setup { capabilities = capabilities, on_attach = function(client, bufnr) - -- Disable semantic tokens if the issue persists + -- Disable semantic tokens as a workaround for a semantic token error when using non-english characters client.server_capabilities.semanticTokensProvider = nil end, cmd = ${ @@ -40,7 +40,7 @@ capabilities = capabilities, single_file_support = true, on_attach = function(client, bufnr) - -- Disable semantic tokens if the issue persists + -- Disable semantic tokens as a workaround for a semantic token error when using non-english characters client.server_capabilities.semanticTokensProvider = nil end, cmd = ${ From a1a8d596edbd84f8edf640746c464cd18abda643 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 26 Nov 2024 09:41:41 +0300 Subject: [PATCH 3/3] flake: rustaceanvim 2024-11-09 -> 2024-11-25 --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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": {