Comments (8)
This is what noice does (overwriting the LSP buffer handler) and you can use the option I mentioned earlier to silence those notifications. If you don't use noice, then you have to do something similar in your personal configuration on your own.
from lazyvim.
You must have multiple LSP servers attached to the buffer and not everyone has information about the symbol under the cursor. I noticed this when I had pyright and jedi and had disabled HoverProvider
from pyright in favor of jedi. You can enable an option in noice.nvim
to not show these messages. opts.lsp.hover.silent = true
For more info read noice's docs.
from lazyvim.
I think it's because of nvim-notify
. Try disabling it and see if you observe same behavior.
from lazyvim.
without nvim-notify it prints twice to messages stack
and if I disable all plugins and extras and disable nvim-notify I see nothing at all on hover
but switching off nvim-notify is not an optimal solution here because nvim-notify is needed. Any js/ts buffer has at any given moment at least 3 lsp clients working at the same time to complete missing parts of each other, eslint + tsserver + cssls, so I am surprised that this is a an actual problem
from lazyvim.
Are you able to reproduce this with default LazyVim installation?
from lazyvim.
This is default behavior for Neovim vim.lsp.buf.hover()
. See here where it is defined. It calls request
, which is the function just above, which returns vim.lsp.buf_request()
. That in turn is defined here and you can see from the comments that
--- Sends an async request for all active clients attached to the
--- buffer.
Since it sends the request to all active clients in the buffer, the ones that don't have information for the symbol under the cursor send back Information not available
. If there are more than one server which doesn't have information available you will see more than one notification.
So, not a LazyVim bug it seems.
from lazyvim.
Noice does the same as the default lsp handler
from lazyvim.
@dpetka2001 thanks for checking
This resolves the issue for me for good
do you think this can be added to lazyvim as well?
from lazyvim.
Related Issues (20)
- bug: Todo binds still hardcoded to telescope
- bug: rename is invalid in vue file
- bug: vtsls outputing incorrect diagnostics in Neovim 0.10.0
- bug: Failed to run `config` for fzf-lua HOT 7
- bug: codelldb adapter path incorrect after removal of mason-nvim-dap.nvim dependency HOT 4
- bug: Symlink config files not found
- feature: Document how to override autocommands HOT 2
- bug: Hover get exited when scrolling to the end HOT 3
- bug: after latest update, there is error in edgy HOT 19
- feature: Add full-featured setup guides for different languages, such as lint HOT 2
- bug: breaking change in conform.nvim HOT 3
- bug: there are 2 suggested supertab configurations in website HOT 2
- bug: nvim-metals does not load when Scala extras is enabled HOT 21
- bug: nvim-treesitter error on read-only file system HOT 6
- bug: which-key set `il`/`al`/`in`/`an` even if they are disabled or remapped in `mini.ai` HOT 1
- bug: relative number not working HOT 2
- bug: HOT 1
- bug: formatting is not working if lang.go and formatting.prettier are installed on relevant files HOT 3
- bug(haskell): LazyVim.root does not detect lsp root dir HOT 4
- bug: cannot use <c-cr> when a suggestion is showing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazyvim.