Fork me on GitHub
#conjure
<
2022-05-17
>
Dumch12:05:50

Dont know if its a problem to solve. I had a module:

(module plugin.toggleterm
  {require {nvim aniseed.nvim
             term toggleterm
             {:m map} util}}) 
Which stoped working with one of the latest commits. I found out that if I rename the plugin (so there is no name collision with toggleterm), everything works:
(module plugin.<new name here>
  {require {nvim aniseed.nvim
             term toggleterm
             {:m map} util}})
(https://github.com/Liverm0r/dotfiles/commit/d9b9cad3ee1ab91d0dee000673820c432b8902b8 with fix)

Dumch12:05:24

And it seems that only toggleterm stoped working, but other plugins like cmp and lsp worksk:

Dumch12:05:52

I also tried to remove /lua and renmae terminal back to toggleterm to exclude some cache problem, but it doesn't help.

Olical14:05:39

Hmm are your file names lining up with your module names and locations? Shouldn't really break stuff but worth checking.

Olical14:05:58

My other hunch would be that toggleterm is maybe crating a Lua module under the same name and colliding?

Dumch18:05:14

Seems not to

Dumch18:05:46

my module is inside /plugin dir

Olical08:05:09

Try moving toggleterm.lua into toggleterm/init.lua.

Olical08:05:43

I think that's the problem. Lua doesn't like the directory and file name being the same, it expects "default" modules to be under (name)/init.lua

martinklepsch16:05:20

Is there a way to disable the automatic babashka REPL server?

Olical16:05:42

Beat me to it!

gotta_go_fast 3
martinklepsch17:05:15

Thank you Dave!

martinklepsch17:05:29

Hope y’all are well πŸ™Œ

πŸ™Œ 1