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

Stalls if there is any configuration load failiure in neovim config #3

Open
Asapgiri opened this issue Feb 24, 2024 · 1 comment
Open

Comments

@Asapgiri
Copy link

If there is any configuration error in neovim, or in my case a warning in setting up mason-lspconfig, nvim-cat will propably run to an infinite loop and stall, instead of printing, with the still working config.

The warning that I had, because I am trying out config options:

[mason-lspconfig.nvim] Server "bash" is not a valid entry in ensure_installed. Make sure to only provide lspconfig server names.

the configi where it cames from:

require('mason').setup({})
require('mason-lspconfig').setup({
    ensure_installed = {
        'clangd',
        'zls',
        'bash'   -- <== will cause the waring, and the error for me
    },
  handlers = {
    lsp_zero.default_setup,
  },
})

In this case nvim-cat will print nothing, and I have to cancel it with Ctrl+C.
After deleting the 'bash' line, it will print correctly.

@lincheney
Copy link
Owner

See #4 (comment)

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