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

如何清除Mason安装失败的信息 #28

Closed
Akiramex opened this issue Jun 5, 2024 · 2 comments
Closed

如何清除Mason安装失败的信息 #28

Akiramex opened this issue Jun 5, 2024 · 2 comments

Comments

@Akiramex
Copy link

Akiramex commented Jun 5, 2024

Snipaste_2024-06-05_11-24-12
每次打开nvim都会弹出这几个,怎么安装或者取消安装或者清除失败信息?

@archibate
Copy link
Owner

编辑 ~/.config/nvim/lua/archvim/config/mason.lua

require("mason-lspconfig").setup {
    ensure_installed = { "clangd", "cmake", "pyright", "lua_ls", "tsserver" },
    automatic_installation = true,
}

改为

require("mason-lspconfig").setup {
    ensure_installed = { "clangd", "cmake", "lua_ls", "tsserver" },
    automatic_installation = true,
}

即可不自动安装 pyright。

另外,能否让我看一下 :MasonLog?可能是你的系统没有 python3 导致安装失败。

@Akiramex
Copy link
Author

Akiramex commented Jun 5, 2024

感谢回答,确实是没有python3。另外有没有计划出一期使用指南,nvim新手用着一脸懵

@Akiramex Akiramex closed this as completed Jun 5, 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