From 6b04e6f9062659299559147e54a12cb0c4881b80 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 19 Nov 2024 01:10:05 -0800 Subject: [PATCH] fix: specify utf-8 offset encoding for tinymist --- lua/lsp/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index d446f25..dfd5fa5 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -58,7 +58,9 @@ M.setup = function() }, }) lspconfig.marksman.setup({}) - lspconfig.tinymist.setup({}) + lspconfig.tinymist.setup({ + offset_encoding = "utf-8", + }) lspconfig.svelte.setup({}) lspconfig.tailwindcss.setup({}) lspconfig.texlab.setup({})