AndCake/micro-plugin-lsp

Auto completion is duplicating the already typed parts of string

rochacbruno opened this issue · 4 comments

I am using https://github.com/python-lsp/python-lsp-server installed with [all] option.

When I go to a Rune such as os.pa and hit Ctrl+Space I expected the autocomplete to give me os.pa[th] but is is giving me os.pa[path]

Is there any config I need to add?

Screenshot_2022-04-08_09-22-25

Thanks again

Hey thanks for opening the issue. On first sight it looks like this LSP server doesn't send textEdits along with the response and thus the editing range is missing as well. I will investigate if other data is coming along that I might be able to use instead.

same on rls

Screenshot_2022-04-08_11-04-41

@rochacbruno I created a fix for the issue above. Can you check if this works for you?

@AndCake yes it works great! thanks again