I have this in my init.vim
to try and setup pylint
. I have a conda environment (and activated) with pylint
installed. Next I have a simply python file with import numpy as np
in it. Since numpy
is not installed I would expect pylint
to complain, but it’s not. So, as far as I can tell it’s not being used. :LspInfo
tells me that pyls
is running, but I don’t know how to debug beyond that. I took these settings from nvim-lspconfig/CONFIG.md at master · neovim/nvim-lspconfig · GitHub
Went through Learn X in Y minutes for Lua, this seems valid. Not sure what I am doing wrong. Maybe this is the wrong place to ask.
lua << EOF
local lsp=require('lspconfig')
lsp.pyls.setup{
settings = {
plugins = {
pylint = {
enabled = true,
executable = 'pylint',
args={'--rcfile', '~/.pylintrc'}
}
}
}
}
EOF
And here’s my conda env.
❯ conda list
# packages in environment at /Users/alexis/miniconda3/envs/test:
#
# Name Version Build Channel
appdirs 1.4.4 pypi_0 pypi
astroid 2.5.6 pypi_0 pypi
black 21.4b1 pypi_0 pypi
ca-certificates 2021.1.19 hecd8cb5_1
certifi 2020.12.5 py39hecd8cb5_0
click 7.1.2 pypi_0 pypi
isort 5.8.0 pypi_0 pypi
jedi 0.17.2 pypi_0 pypi
lazy-object-proxy 1.6.0 pypi_0 pypi
libcxx 10.0.0 1
libedit 3.1.20191231 h1de35cc_1
libffi 3.3 hb1e8313_2
mccabe 0.6.1 pypi_0 pypi
mypy-extensions 0.4.3 pypi_0 pypi
ncurses 6.2 h0a44026_1
openssl 1.1.1j h9ed2024_0
parso 0.7.1 pypi_0 pypi
pathspec 0.8.1 pypi_0 pypi
pip 21.0.1 py39hecd8cb5_0
pluggy 0.13.1 pypi_0 pypi
pylint 2.8.2 pypi_0 pypi
pyls-black 0.4.6 pypi_0 pypi
python 3.9.2 h88f2d9e_0
python-jsonrpc-server 0.4.0 pypi_0 pypi
python-language-server 0.36.2 pypi_0 pypi
readline 8.1 h9ed2024_0
regex 2021.4.4 pypi_0 pypi
setuptools 52.0.0 py39hecd8cb5_0
sqlite 3.33.0 hffcf06c_0
tk 8.6.10 hb0a8c7a_0
toml 0.10.2 pypi_0 pypi
tzdata 2020f h52ac0ba_0
ujson 4.0.2 pypi_0 pypi
wheel 0.36.2 pyhd3eb1b0_0
wrapt 1.12.1 pypi_0 pypi
xz 5.2.5 h1de35cc_0
zlib 1.2.11 h1de35cc_3