DetachHead

Results 933 comments of DetachHead

`venvPath`/`venv` is now discouraged in favor of `pythonPath` so i'm going to leave these options as-is. see https://docs.basedpyright.com/dev/benefits-over-pyright/better-defaults/#default-value-for-pythonpath if anybody still feels a need for these settings feel free to...

> However, how/why do we know that the `toml` key here happened to be `basedpyright.analysis` and not just specifying the config, like `typeCheckingMode` directly? the language server specific options are...

the the way config is handled in (based)pyright is kind of a mess (#64). the code that reads the [language server config](https://docs.basedpyright.com/#/settings) is separate to the code that reads [the...

that's probably the issue then. i'm not familiar with conda but it sounds like the only way to get pyright to work with it is to [activate the venv first](https://www.reddit.com/r/neovim/comments/ydw01r/how_to_get_pyright_to_use_the_current_conda/itv46hc/)

you mean the new rules exclusive to basedpyright like `reportPrivateLocalImportUsage`? they are configured the same way as the rest of the diagnostic rules: `basedpyright.analysis.reportPrivateLocalImportUsage`

you need the `analysis` part: ```toml [language-server.basedpyright.config] basedpyright.analysis.typeCheckingMode = "standard" ... basedpyright.analysis.reportPrivateUsage = false ``` if that's still not working, if you happened to add a `basedpyright` or `pyright` section...

thanks, i'll play around with it and try to get back to you within a day or so. appreciate your patience, i know how much of a pain it is...

sorry i dunno how i missed this. the issue was that you need to specify the diagnostic severity overrides under `basedpyright.analysis.diagnosticSeverityOverrides`. this works: ```toml [language-server.basedpyright.config] basedpyright.analysis.typeCheckingMode = "standard" basedpyright.analysis.diagnosticSeverityOverrides.autoSearchPaths =...

it's mentioned in [the docs for the language server settings](https://docs.basedpyright.com/#/settings), but it's easy to miss: > basedpyright.analysis.diagnosticSeverityOverrides [map]: Allows a user to override the severity levels for individual diagnostic rules....