From db5f0d9e0bf7715c9667fcb68fbdd430ce5ed00f Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 8 Nov 2024 21:04:02 -0500 Subject: [PATCH] nvim: make typst lsp not complain about special characters --- src/dot_config/nvim/lua/coding.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dot_config/nvim/lua/coding.lua b/src/dot_config/nvim/lua/coding.lua index 38ecbf9..0128c59 100644 --- a/src/dot_config/nvim/lua/coding.lua +++ b/src/dot_config/nvim/lua/coding.lua @@ -93,6 +93,11 @@ local on_attach = function(client, bufnr) client.server_capabilities.hoverProvider = false end + if client.name == "typst_lsp" then + -- this breaks on special characters outside english + client.server_capabilities.semanticTokensProvider = false + end + -- Enable completion triggered by buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc') @@ -190,7 +195,7 @@ local servers = { }, typst_lsp = { settings = { - exportPdf = "onSave" -- alternatively onType / never + exportPdf = "onSave", -- alternatively onType / never } }, nushell = {},