other.nvim
other.nvim copied to clipboard
not works fine on sveltekit
Hi! I found that the latest version of other.nvim does not work for my configuration.
I found that this happens after 6913629 commit.
How to reproduce
- check my config https://github.com/ryoppippi/dotfiles/blob/96bdffc0f8cc61fc10bc3a376cbf527ac243b36b/nvim/lua/plugin/other.lua#L1
- create example directory like this
ex
├── +page.server.ts
├── +page.svelte
└── +page.ts
-
Open
+page.ts
then runOther
command- at d36a66a
-
- at 6913629
- no file listed
-
- at d36a66a
-
Also open
+page.svelte
then runOther
command-
at d36a66a
-
-
at 6913629
- weird file created.....
-
-
@ryoppippi Thanks for taking the time to compare the commits! Definetly a bug.. I will look into this and get back to you.
@ryoppippi This issue should now be fixed.. But I also saw a problem with your config.
You have
local sveltekit_target = {
{ target = "/%1/%+%2.svelte", context = "view" },
{ target = "/%1/%+%2\\(*.ts\\|*.js\\)", context = "script", transform = "remove_server" },
{ target = "/%1/%+%2\\(*.ts\\|*.js\\)", context = "script", transform = "add_server" },
}
where you use the keyword transform
where it should be transformer
@rgroli Oh really! Thanks I'll modifiy it. If I have estra issues, I'll create it.
Thank you so much