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

bug: global diagnostic config may be overwritten #125

Open
whitemoon opened this issue Oct 22, 2023 · 4 comments
Open

bug: global diagnostic config may be overwritten #125

whitemoon opened this issue Oct 22, 2023 · 4 comments

Comments

@whitemoon
Copy link

vim.diagnostic.config({

@whitemoon
Copy link
Author

截图_2023-10-22_13-57-31
截图_2023-10-22_13-58-14

@chipsenkbeil
Copy link
Owner

@whitemoon I don't have any of the errors or issues you are listing. Are you saying there is an issue with using vim.diagnostic.config? What version of neovim are you using?

Editor Setup

If you want a reference for the setup I have for testing and development, here's what I've got:

  • For all tests, we use neovim 0.8.0 as a baseline.
  • On my local machine, I am using 0.9.0.
  • Lua language server version is 3.6.19.
  • neodev.nvim plugin at commit a2b1d8f.

@whitemoon
Copy link
Author

whitemoon commented Oct 23, 2023

@chipsenkbeil I have configured diagnostics={virtual_text=false} in my own configuration, but not effective, and underline is enable, but also not effective.
I tried to block one plugin at a time and found that this plugin caused it, so I guess the configuration in this plugin covered the global configuration. When I blocked the code, it would be fine.

neovim: nightly
neovim config: base on LazyVim
os version: archlinux

neovim distant.nvim configure:

return {
  {
    "chipsenkbeil/distant.nvim",
    event = "VeryLazy",
    branch = "v0.3",
    config = function()
      require("distant"):setup()
    end,
  },
}

@davmacario
Copy link

davmacario commented Apr 3, 2024

I'm having a related issue as well: when I load distant.nvim the diagnostics icons that I set in my config to appear next to the line numbers are not shown.

Without distant.nvim:
immagine

With distant.nvim:
immagine

As you can see, also the icons next to the virtual text are reset to default.
I am using vim.diagnostic.config to set those up.

I'm on MacOS 14.4.1 and Neovim 0.9.5.

davmacario added a commit to davmacario/dotfiles that referenced this issue Apr 3, 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

3 participants