You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm using nil via vim + neovim/nvim-lspconfig. It's working pretty well, but once in a while I try to use :lua vim.lsp.buf.document_highlight() which highlights the variable that's on the cursor. This works in simple code, but the more complex it gets, the less likely I'll see all the references. Here's two examples that differ in only one line:
{config,lib,rycee-lib, ... }:
letpepe=x: lib.mkMerge[{extensions=[config.nur.repos.rycee.firefox-addons.ublock-originconfig.nur.repos.rycee.firefox-addons.darkreaderconfig.nur.repos.bandithedoge.firefoxAddons.imagus# https://addons.mozilla.org/en-US/firefox/addon/art-project/# https://addons.mozilla.org/en-US/firefox/addon/shortkeys/# istilldontcareaboutcookies-1.1.1(rycee-lib.buildFirefoxXpiAddon{meta=withlib;{homepage="https://github.com/reblws/tab-search/";description="Easy tab search & management. Get a keyboard-accessible search interface for managing your tabs.";mozPermissions=["tabs""activeTab""storage""sessions""bookmarks""history"];platforms=platforms.all;};})];}];in{programs=(pepe{});}
The text was updated successfully, but these errors were encountered:
frankitox
changed the title
Highlight break after certain amount of lines
Highlight breaks after certain amount of lines
Nov 11, 2024
I think this is expected since Document Highlight is more like a quick fuzzy glance for all related code. If the variable is defined hundreds lines above the usage, you cannot highlight it anyway because it's out of the screen.
You can always use precise "Goto Definition" and/or "References" to get a complete list.
Hi! I'm using nil via vim + neovim/nvim-lspconfig. It's working pretty well, but once in a while I try to use
:lua vim.lsp.buf.document_highlight()
which highlights the variable that's on the cursor. This works in simple code, but the more complex it gets, the less likely I'll see all the references. Here's two examples that differ in only one line:The text was updated successfully, but these errors were encountered: