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

fix: add pylyzer dependenncy info (erg) (#3433) #3441

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lua/lspconfig/configs/pylyzer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@ return {
checkOnType = false,
},
},
on_new_config = function(new_config, _)
new_config.cmd_env.ERG_PATH = vim.fn.getenv('HOME') .. '/.erg'
end,
},
docs = {
description = [[
https://github.com/mtshiba/pylyzer

`pylyzer`, a fast static code analyzer & language server for Python.

`pylyzer` requires Erg as dependency, and finds it via `ERG_PATH` environment variable.
In the default config `ERG_PATH` is set to `~/.erg`, as shown in the `on_new_config` function.
Add a `on_new_config` on your own if you want to change it.

To install Erg, simply extract tarball/zip from [Erg releases](https://github.com/erg-lang/erg/releases/latest)
to the the path where you want to install it, e.g. `~/.erg`.
]],
},
}
Loading