Comments (6)
贴下我的配置,工作挺好的。
local configs = require "lspconfig.configs"
if not configs.rimels then
configs.rimels = {
default_config = {
cmd = { "rime_ls" },
-- root_dir = require("lspconfig.util").root_pattern ".git",
root_dir = function() return vim.fn.expand "~/.local/share/rime-data" end,
filetypes = { "*" },
init_options = {
enabled = true,
shared_data_dir = vim.fn.expand "~/Library/Rime",
user_data_dir = vim.fn.expand "~/.local/share/rime-data",
log_dir = vim.fn.expand "~/.local/share/rime-lsp",
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 强制补全永远刷新整个列表,而不是使用过滤
max_tokens = 0, -- [since v0.2.3] 大于 0 表示会在删除到这个字符个数的时候,重建所有候选词,而不使用删除字符操作
preselect_first = true, -- [since v0.2.3] 是否默认第一个候选项是选中状态,default false
},
},
}
end
local rime_ls_enabled = true
if vim.fn.executable "rime_ls" ~= 0 and rime_ls_enabled then
-- 启用 rimels
lspconfig.rimels.setup {}
end
from rime-ls.
这个项目是一个语言服务器,和 lazy.nvim 没有直接的适配关系,他应该和 neovim/nvim-lspconfig 适配吧。
这个文档 nvim.md 写的蛮清楚的。
我用的 lazy.nvim 可以参考下我的配置:https://github.com/rainzm/rainvim/blob/main/lua/plugins/lsp/rime_ls.lua#L3
from rime-ls.
好的,谢谢!! 为什么不使用lunarvim ne
from rime-ls.
用啥都行,我最早用neovim的时候还没有 lunarvim 这个项目,配置也是一路迁移过来的。自己配的东西比较适合自己吧。
from rime-ls.
我也有在用 lazy.nvim,配置上你也可以参考我的 dotfiles
如果指的是与一些 neovim 现有插件比如 mason,nvim-lspconfig 的适配,等我过段时间有时间的话可能会去做
from rime-ls.
我把自己配置打成了一个插件,可以像普通插件那样用 lazy.nvim 安装
from rime-ls.
Related Issues (20)
- 英文标点符号后空格才能触发补全 HOT 7
- 补全列表最多显示一页内容 HOT 3
- 如何让`-`直接上屏 HOT 8
- 无法触发补全的场景 HOT 3
- [Feature] 支持 c/s 模式 HOT 5
- didChange with full text can't work HOT 1
- Windows10一直配置不成功 HOT 6
- 折腾了一天,贴一个展示 HOT 5
- rime_ls启动了但是没有cmp的补全 HOT 1
- 用数字选词以后还需要一次空格才能上屏幕 HOT 14
- rime启动失败 HOT 7
- ld: library 'rime' not found HOT 2
- MacOS 的编译和运行遇到缺少库时的解决方案 HOT 2
- Tracking: 编辑器适配情况
- rime 初始化的时候有日志输入影响lsp client的数据解析 HOT 1
- 补全的都是繁体中文 HOT 3
- 补全一次之后再次输入无法触发补全 HOT 11
- MacOS Support HOT 11
- termux构建失败 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rime-ls.