Commit Graph

38 Commits

Author SHA1 Message Date
Michele Campeotto
1061db98d0 Don't drop multisym delimiters at the end of a symbol
added a test for completions
2025-10-19 15:24:33 -05:00
XeroOl
cd9821cd80 fix fennel-ls#81 2025-08-29 16:09:27 -05:00
XeroOl
bf3f353b8d fix issue with duplicate errors
fixes #75
2025-08-08 01:12:57 -05:00
XeroOl
c127c54937 sort text for completions
some cursed heuristics for completions, because nvim-cmp kept getting
them wrong. nvim-cmp actually prioritizes kind over sort text, so it
will still get it wrong, but I'm hoping that having a correct sort-text
helps other editors.
2025-08-01 19:28:23 -05:00
XeroOl
38cfd9a249 tricky macro hidden scope completions
it's hard to tell which scope something is in. This makes completions a
little better but it misses docs during good completion
2025-07-30 15:59:43 -05:00
XeroOl
735d8d5663 suppress warnings during tests 2025-07-30 14:25:55 -05:00
XeroOl
2a23d2f950 fix completion scope bug and fix completion macro call special case and add completions for nil and false and true and improve completion test speeds
I did a lot in one big commit.

fix bug where (each [foo (ipairs [])] |)  wouldn't suggest foo
fix bug with (doto foo |) wouldn't suggest specials and macros, even though it expands to | in a call position
completions for true, false, nil, .nan, .inf
docs for true, false, nil
clarify error message when passing a folder to --lint
improved test performance for completion tests
2025-07-30 00:29:32 -05:00
XeroOl
284a760224 fix the | virtual cursor character appearing in completion output 2025-07-18 12:45:48 -05:00
XeroOl
1c3d7fbe21 make the completion tests run faster
performance is starting to bother me, but I've made completions faster (in tests).
2025-07-16 02:05:31 -05:00
XeroOl
7b215e15e8 fix completions in comments and strings, and more reliable binding completions 2025-07-11 14:06:33 -05:00
XeroOl
28e20f74cb better completions in destructure bindings 2025-07-08 23:01:11 -05:00
XeroOl
0641b1b098 simplify completions 2025-07-02 19:11:10 -05:00
XeroOl
5bb3f76050 fix documentation for macros, and fix completion item kind 2025-04-23 23:42:29 -05:00
XeroOl
3f1c2ea361 clean up some tests, restore (fn M.method []) completion handling 2025-04-23 23:42:29 -05:00
XeroOl
8a1aa53505 fix string methods, and some tests 2025-04-23 23:42:29 -05:00
XeroOl
5017177b44 horrible messy code that does deeper completions 2025-04-23 23:42:29 -05:00
Phil Hagelberg
d7b88efe69 Only set default completion kind when it's not already present! 2025-02-26 01:12:02 -08:00
Michele Campeotto
1d2ea48c16 allow docs to set the item kind 2025-02-25 05:38:50 -08:00
Phil Hagelberg
adcff56050 Fix warning in completion test; remove unused stuff from makefile. 2025-02-15 09:51:54 -08:00
XeroOl
d309c80541 simplify tests. only one create-client function 2024-07-05 00:25:51 -05:00
XeroOl
9770e3eefd Rename self->client in tests 2024-06-01 23:12:42 -05:00
XeroOl
3f5984df06 Add extra check to textEdit
I really should just make it (pairs) through all the keys, but for now
I'll just keep adding the checks manually.
2024-05-29 22:01:56 -05:00
XeroOl
4c92af1bc5 Align allowed-globals with the currently selected docs 2024-05-17 20:45:37 -05:00
XeroOl
e37c77958d fix zero-arg documented function formatting 2024-05-14 00:18:07 -05:00
XeroOl
3fad66a476 Switch docs to autogenerated 2024-05-13 23:58:37 -05:00
XeroOl
8d57f60369 remove some comments :) 2024-05-13 01:07:05 -05:00
XeroOl
926dff9267 Docs when completing string fields 2024-05-04 15:37:01 -05:00
XeroOl
944f57cc08 No duplicate scope completions 2024-04-30 21:42:00 -05:00
XeroOl
343777d301 eglot completion quirk tests 2024-04-30 21:40:07 -05:00
XeroOl
cc05d7089f final attempt at fixing builds.sr.ht 2024-03-04 00:38:47 -06:00
XeroOl
80d0e297a1 more likely pass builds.sr.ht tests 2024-03-04 00:36:53 -06:00
XeroOl
65ea473197 new rockspec to make the luarocks rock work 2024-03-04 00:30:06 -06:00
XeroOl
888689a3a1 Make tests pass on old lua versions 2024-03-03 23:14:22 -06:00
XeroOl
0a766c6425 Finally, documentation for table.insert 2024-03-02 20:12:27 -06:00
XeroOl
308f7d9930 fix broken test 2024-03-02 10:55:15 -06:00
XeroOl
66bcfc65e5 fix completions for M style modules 2024-03-01 16:39:46 -06:00
XeroOl
284983657f continue compilation in broken let statements 2024-03-01 14:51:18 -06:00
XeroOl
186c388344 Change tests to faith 2024-03-01 14:43:26 -06:00