nvim: make typst lsp not complain about special characters

This commit is contained in:
dogeystamp 2024-11-08 21:04:02 -05:00
parent 2b0be912aa
commit db5f0d9e0b

View File

@ -93,6 +93,11 @@ local on_attach = function(client, bufnr)
client.server_capabilities.hoverProvider = false client.server_capabilities.hoverProvider = false
end end
if client.name == "typst_lsp" then
-- this breaks on special characters outside english
client.server_capabilities.semanticTokensProvider = false
end
-- Enable completion triggered by <c-x><c-o> -- Enable completion triggered by <c-x><c-o>
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc') buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
@ -190,7 +195,7 @@ local servers = {
}, },
typst_lsp = { typst_lsp = {
settings = { settings = {
exportPdf = "onSave" -- alternatively onType / never exportPdf = "onSave", -- alternatively onType / never
} }
}, },
nushell = {}, nushell = {},