other.nvim icon indicating copy to clipboard operation
other.nvim copied to clipboard

not works fine on sveltekit

Open ryoppippi opened this issue 9 months ago • 1 comments

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 run Other command

    • at d36a66a
      • Screenshot 2024-05-05 at 08 15 10
    • at 6913629
      • no file listed
      • Screenshot 2024-05-05 at 08 21 04
  • Also open +page.svelte then run Other command

    • at d36a66a

      • Screenshot 2024-05-05 at 08 16 04
    • at 6913629

      • weird file created.....
      • Screenshot 2024-05-05 at 08 19 44

ryoppippi avatar May 05 '24 07:05 ryoppippi

@ryoppippi Thanks for taking the time to compare the commits! Definetly a bug.. I will look into this and get back to you.

rgroli avatar May 14 '24 07:05 rgroli

@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 avatar Jun 10 '24 21:06 rgroli

@rgroli Oh really! Thanks I'll modifiy it. If I have estra issues, I'll create it.

Thank you so much

ryoppippi avatar Jun 11 '24 16:06 ryoppippi