Skip to content
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

使用Lazynvim 安装后提示空值调用 #7

Open
Kaiser-Yang opened this issue Aug 6, 2024 · 1 comment
Open

使用Lazynvim 安装后提示空值调用 #7

Kaiser-Yang opened this issue Aug 6, 2024 · 1 comment

Comments

@Kaiser-Yang
Copy link

使用Lazy.nvim进行安装:

-- 下面的内容放置在`cmp`的`dependencies`部分
                {
                    '[email protected]:wasden/cmp-flypy.nvim.git',
                    -- make flypy只编译小鹤音形, make wubi98只编译98五笔, make或make all全编译
                    build = "make flypy",
                    config = function() require'plugin_config/cmpflypy_config' end,
                },

安装后,在使用中提示:

image

而且我发现我的配置并没有生效,因为我在配置中使用了comment = false但是我依然会在注释部分触发该错误,另外我在配置的filetype部分增加了vimwiki但是不会在vimwiki文件中触发该错误,这也说明我的配置没有生效,cmpfpypy_config.lua内容如下:

require("flypy").setup({
    dict_name = "flypy",         -- 选择码表:flypy为小鹤音形,wubi98为98五笔
    comment = false,              -- 在所有文件类型的注释下开启
    filetype = { "markdown", "vimwiki" },  -- 在指定文件类型下开启
    num_filter = true,           -- 数字筛选
    source_code = false,         -- 显示原码n 
    space_select_enable = false, -- 空格上屏开关
    space_select_enable_hint = "",             -- 空格上屏提示样式
    space_select_switch_mappings = "<C-Space>", -- 空格上屏开关按键映射n
})
@Kaiser-Yang
Copy link
Author

我发现是lua加载动态库的时候出现的问题,给出的信息如下:
nil /home/kaiser/.local/share/nvim/lazy/cmp-flypy.nvim/lua/../build/libflypy.so: undefined symbol: luaL_checkversion_ open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant