-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望大佬能够进行lazy.nvim的适配安装。 #12
Comments
这个项目是一个语言服务器,和 lazy.nvim 没有直接的适配关系,他应该和 neovim/nvim-lspconfig 适配吧。 |
好的,谢谢!! 为什么不使用lunarvim ne |
用啥都行,我最早用neovim的时候还没有 lunarvim 这个项目,配置也是一路迁移过来的。自己配的东西比较适合自己吧。 |
我也有在用 lazy.nvim,配置上你也可以参考我的 dotfiles |
贴下我的配置,工作挺好的。 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
|
我把自己配置打成了一个插件,可以像普通插件那样用 lazy.nvim 安装 |
No description provided.
The text was updated successfully, but these errors were encountered: