languages/typst: fixed callback error with non-english characters

This commit is contained in:
Soliprem 2024-11-26 04:49:57 +01:00 committed by raf
parent 8c95b996c7
commit 26bb56eba8

View file

@ -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