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

cmake-tools使用问题 #36

Open
hkx-cn opened this issue Sep 16, 2024 · 2 comments
Open

cmake-tools使用问题 #36

hkx-cn opened this issue Sep 16, 2024 · 2 comments

Comments

@hkx-cn
Copy link

hkx-cn commented Sep 16, 2024

操作系统:Archlinux
安装方式:先安装的Neovim再用手动安装命令进行安装的插件包
问题:使用cmake-tools的相关命令都会弹出如下的错误提示,需要按回车后,才可以正常使用

截图 2024-09-16 20-46-25

@archibate
Copy link
Owner

Civitasv/cmake-tools.nvim#197
I just monkey-patched cmake-tools:

local scratch = require'cmake-tools.scratch'
function scratch.append(cmd)
    vim.schedule(function()
        if scratch.buffer ~= nil then
            vim.api.nvim_buf_set_lines(scratch.buffer, -1, -1, false, { cmd })
        end
    end)
end

See if it still happens?

@hkx-cn
Copy link
Author

hkx-cn commented Sep 17, 2024

问题解决了,感谢小彭老师

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

2 participants