FurqanSoftware / codemirror-languageserver

Language Server integration for CodeMirror 6
BSD 3-Clause "New" or "Revised" License
183 stars 24 forks source link

Is the autocompletion provided by the language server reconfigurable? #25

Open ShobhanKarthick opened 1 year ago

ShobhanKarthick commented 1 year ago

For my project, I am using Code mirror 6 and python-lsp-server as my language server.

I spawn up my language server using the following code

pylsp --ws --port 3001

I attach the serverUri to the extension. Now I am particularly concerned about 2 things

  1. First being, when I autocomplete using the autocompletions provided by python-lsp-sever to the codemirror-languageserver extension, the suggestion adds the variables also as shown in the below figures

image

image

  1. Right now, the source code codemirror-languageserver overrides the autocompletion. However I would like to add custom autocompletions. Would that be possible? Or would I be able to wrap the code with custom variables and send it across?

Any help would be greatly appreciated!