# Neovim diagnostics with nvim-lspconfig

**URL:** <https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130>\
**Category:** Tooling\
**Tags:** neovim\
**Created:** [January 6, 2022, 11:10am UTC](https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130 "2022-01-06T11:10:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![filchristou](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/filchristou/32/26760_2.png) [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Post date:** [January 6, 2022, 11:10am UTC](https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130/1 "2022-01-06T11:10:50Z")

</div>

I have been using nvim-lspconfig with nvim-comp for the last months and it has been working fine. Recently though, I had some problems which were solved by updating to NVIM v0.6.1 and adding the master branches of LanguageServer, SymbolServer, StaticLint, CSTParser.

Up untill now I was using `vim.lsp.diagnostic.show_line_diagnostics()` to get diagnostic messages. But this got deprecated in this nvim version in favor of `vim.diagnostic.open_float()`. I tried using it (together with `vim.diagnostic.get()`, `vim.diagnostic.show()`, `vim.diagnostic.enable()`), but I don’t get any diagnostic messages.

Other than that the julials lsp server seems to work fine, without errors.

Any suggestions ?

---

<div class="post-metadata">

**Author:** ![jimigrunge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jimigrunge/32/32489_2.png) [@jimigrunge](https://discourse.julialang.org/u/jimigrunge)\
**Post date:** [January 6, 2022, 3:00pm UTC](https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130/2 "2022-01-06T15:00:04Z")

</div>

Just ran into this today. I have updated my bound keymapping in whichkey to this and it is working fine for me again without warning.

```julia
{ "<cmd>lua vim.diagnostic.open_float()<CR>", "Line diagnostic" }

```

More detailed information can be found in the docblocks of the source code: [https://github.com/neovim/neovim/blob/master/runtime/lua/vim/lsp/diagnostic.lua](https://github.com/neovim/neovim/blob/master/runtime/lua/vim/lsp/diagnostic.lua)

---

<div class="post-metadata">

**Author:** ![filchristou](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/filchristou/32/26760_2.png) [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Post date:** [January 6, 2022, 3:17pm UTC](https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130/3 "2022-01-06T15:17:45Z")

</div>

Okey. Everything works normal (using `vim.diagnostic.open_float()` ) when in the root folder there is a `Project.toml` and a `Manifest.toml` file.
