micro-plugin-lsp
micro-plugin-lsp copied to clipboard
Proper set-up for the plugin
I originally asked this in a different repo, but as advised it does make a lot more sense to ask this here
Basically I:m having a hard time getting the below to work
This looks amazing, thanks @AndCake
I ran
micro -plugin install lsp
pip install "python-lsp-server[rope,ruff,pylsp-mypy]"
pip install pylsp-mypy
Then set my ~/.config/micro/settings.json
to
{
"lsp.server": "python=pylsp",
"lsp.formatOnSave": true,
"lsp.tabcompletion": true,
"lsp.autocompleteDetails": false
}
which, for some reason, after quitting micro automatically gets rewritten to
{
"lsp.server": "python=pylsp"
}
After this, the commands (ctrl+space, alt+k, alt+r, alt+d) either don't work or are incredibly delayed. I have yet to get the others to work, but I after smashing ctrl+space over and over again something did eventually show up, however
- the completions don't seem to be for what precedes (i.e. ctrl+space after
gc.
showsArithmeticError
,AssertionError
, etc. instead of saycollect
) - trying to ctrl+space after
gc.colle
just wipes out the.colle
instead of autocompleting, which I assumed was possible as shown here
I was hoping someone could point me in the right direction? Is there something I forgot to configure or some docs that I missed on accident?