diff --git a/CHANGELOG.md b/CHANGELOG.md index d43c181..500768c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# v0.2.4 + +## Fix +- 修复了不定期发生的补全无法触发的问题 #14 +- 修复了 termux 环境下的构建失败 #8 + +## Feat +- 允许通过新配置项 `paging_characters` 自定义触发补全的字符,主要用途是翻页 #13 + +## Chore +- 有了基础的 GitHub CI #9 (Thanks to eagleoflqj) + # v0.2.3 ## Breaking Changes diff --git a/Cargo.toml b/Cargo.toml index f0b80e5..ddd38a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rime_ls" -version = "0.2.3" +version = "0.2.4" edition = "2021" authors = ["ZilcH40 "] rust-version = "1.63" @@ -9,17 +9,17 @@ rust-version = "1.63" [dependencies] librime-sys = { version = "0.1.0", git = "https://github.com/lotem/librime-sys" } -dashmap = "5.4.0" -regex = "1.7.1" +dashmap = "5.5.3" +regex = "1.10.0" ropey = "1.6.0" tokio = { version = "1", features = ["io-util", "io-std", "macros", "rt-multi-thread", "net", "signal"] } -tower-lsp = "0.19.0" +tower-lsp = "0.20.0" serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.91" -directories = "4.0.1" -ouroboros = "0.15.5" -thiserror = "1.0.38" -once_cell = "1.17.0" +serde_json = "1.0.107" +directories = "5.0.1" +ouroboros = "0.18.0" +thiserror = "1.0.49" +once_cell = "1.18.0" [features] default = [] diff --git a/doc/nvim.md b/doc/nvim.md index 3b9cf5c..dbe60e8 100644 --- a/doc/nvim.md +++ b/doc/nvim.md @@ -15,6 +15,7 @@ local start_rime = function() user_data_dir = "~/.local/share/rime-ls", -- 指定用户目录, 最好新建一个 log_dir = "~/.local/share/rime-ls", -- 日志目录 max_candidates = 10, -- [v0.2.0 后不再有用] 与 rime 的候选数量配置最好保持一致 + paging_characters = {",", ".", "-", "="}, -- [since v0.2.4] 这些字符会强制触发一次补全,可用于翻页 见 issue #13 trigger_characters = {}, -- 为空表示全局开启 schema_trigger_character = "&" -- [since v0.2.0] 当输入此字符串时请求补全会触发 “方案选单” always_incomplete = false -- [since v0.2.3] true 强制补全永远刷新整个列表,而不是使用过滤 @@ -307,6 +308,7 @@ require('lspconfig').rime_ls.setup { user_data_dir = "~/.local/share/rime-ls", log_dir = "~/.local/share/rime-ls", max_candidates = 9, + paging_characters = {",", ".", "-", "="}, -- [since v0.2.4] 这些字符会强制触发一次补全,可用于翻页 见 issue #13 trigger_characters = {}, schema_trigger_character = "&" -- [since v0.2.0] 当输入此字符串时请求补全会触发 “方案选单” max_tokens = 4, -- 强制在删除到4字的时候重建一次候选词,避免用退格造成的空列表的问题 diff --git a/doc/vim.md b/doc/vim.md index 436ec1a..2dfc34e 100644 --- a/doc/vim.md +++ b/doc/vim.md @@ -20,6 +20,7 @@ "user_data_dir": "~/.local/share/rime-ls", // 指定用户目录,最好新建一个 "log_dir": "~/.local/share/rime-ls", // 日志目录 "max_candidates": 9, // [v0.2.0 后不再有用] 与 rime 的候选数量配置最好保持一致 + "paging_characters": [",", "."], // [since v0.2.4] 这些符号会强制触发一次补全,可用于翻页 见 issue #13 "trigger_characters": [], // 为空表示全局开启 "schema_trigger_character": "&" // [since v0.2.0] 当输入此字符串时请求补全会触发 “方案选单” }