mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-20 11:55:34 +00:00
fix: set position_encoding on handshake and fix to utf-16 (#2153)
Some checks failed
tinymist::auto_tag / auto-tag (push) Has been cancelled
tinymist::ci / Duplicate Actions Detection (push) Has been cancelled
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Has been cancelled
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Has been cancelled
tinymist::ci / prepare-build (push) Has been cancelled
tinymist::gh_pages / build-gh-pages (push) Has been cancelled
tinymist::ci / announce (push) Has been cancelled
tinymist::ci / build (push) Has been cancelled
Some checks failed
tinymist::auto_tag / auto-tag (push) Has been cancelled
tinymist::ci / Duplicate Actions Detection (push) Has been cancelled
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Has been cancelled
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Has been cancelled
tinymist::ci / prepare-build (push) Has been cancelled
tinymist::gh_pages / build-gh-pages (push) Has been cancelled
tinymist::ci / announce (push) Has been cancelled
tinymist::ci / build (push) Has been cancelled
Although we don't have enough tests about utf-8 position encoding, i.e. it is not good to decide to use utf-8, it is completely wrong to not passing a decided encoding back to client on initialization. Edit: it doesn't work correctly under utf-8, so we currently always use utf-16. We may fix it in v0.14
This commit is contained in:
parent
cee5bfa4e6
commit
2c198a3d6a
7 changed files with 23 additions and 16 deletions
|
|
@ -3,6 +3,8 @@ local tinymist = require("others.tinymist")[2]
|
|||
-- set binary path
|
||||
tinymist.opts.servers.tinymist.cmd = { "tinymist" }
|
||||
|
||||
vim.lsp.config("tinymist", tinymist.opts.servers.tinymist)
|
||||
|
||||
|
||||
return {
|
||||
{ "mason-org/mason.nvim", version = "^1.0.0" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue