vimrc icon indicating copy to clipboard operation
vimrc copied to clipboard

cmake-tools使用问题

Open hkx-cn opened this issue 1 year ago • 2 comments

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

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

hkx-cn avatar Sep 16 '24 12:09 hkx-cn

https://github.com/Civitasv/cmake-tools.nvim/issues/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?

archibate avatar Sep 17 '24 08:09 archibate

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

hkx-cn avatar Sep 17 '24 08:09 hkx-cn