Open LoipesMas opened 1 month ago
Thank you
@lpil I would like to try this one, any tips on where to start?
FWIW I would start by double checking what completions the LSP engine is returning in these cases. I have a feeling this is actually editor specific behavior and the _ is not the root issue. Most likely if we wanted to improve this we'd need to use either the filter text or the sort text field in the LSP protocol
If you need more information or want me to test something, let me know
The new auto-imports feature doesn't work with functions/constants that have![image](https://github.com/gleam-lang/gleam/assets/46327403/a0dfa38c-6835-48a8-a02c-d24e7cb66c86)
_
in their name. For example, when I try to getwisp.html_response
, the moment I get tohtml_
, thewisp.html_response
entry no longer shows up. What's left ishtml.parse_multipart_body
andhtml.parse_multipart_headers
.If I instead enter![image](https://github.com/gleam-lang/gleam/assets/46327403/e199954b-ef25-4e94-ba1f-d5639538a5c2)
htmlres
(skipping the_
), thenwisp.html_response
shows up as expected.Normal completion (on![image](https://github.com/gleam-lang/gleam/assets/46327403/a208addf-e500-489c-b67a-17d9b2e42038)
wisp.html_r
) handles it just fine.Gleam version
1.3.0
completion setup: neovim 0.10.0 + nvim-cmp