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

Strange python highlighting and cosmetics #27

Closed
windowsrefund opened this issue Jun 21, 2023 · 2 comments
Closed

Strange python highlighting and cosmetics #27

windowsrefund opened this issue Jun 21, 2023 · 2 comments

Comments

@windowsrefund
Copy link
Contributor

Hello. Active medium reader here who is enjoying my time exploring your content. I'm hoping you might help me understand what I'm seeing when I work with some python code using a fresh install of this disto.

import requests

DEFAULT_URL = "https://xkcd.com/1906"

def get_url(url=DEFAULT_URL):
    return requests.get(url).status_code

When I place my cursor on the 'def' or 'return' key word, I see this odd highlight activity which I do not understand?

Screenshot_2023-06-21_00-14-59

I can reproduce this with any color scheme so I tend to think this may be a feature I don't grok rather than a mere cosmetic.

Also, what's going on with the light bulb that we see to the left? I recall using nvim-lightbulb in a previous life but that plugin isn't installed here. The bulb follows my cursor from line to line so I'm guessing it behaves like the plugin I've mentioned which means it would be trying to tell me 1 or more code actions is available. Entertaining this idea, I do see ruff is offering 2 code actions:

[1] Ruff: Organize Imports
[2] Ruff: Fix all

However, neither option is actually doing anything and I'm sure you'd agree, there's nothing to "organize" to begin with. I'm guessing ruff is generating a false-positive which in turn spawns the bulb?

@mengwangk
Copy link
Contributor

The highlight feature is from vim-matchup

The lightbulb comes from Lspsaga

The ruff lsp issue is fixed

@windowsrefund
Copy link
Contributor Author

Thank you. Looks like the ruff no-op situation is being discussed here.

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