pmizio / typescript-tools.nvim

⚡ TypeScript integration NeoVim deserves ⚡
MIT License
1.26k stars 36 forks source link

Make it possible to remove "Move to a new file" from code actions #238

Open jonasnilsberg opened 4 months ago

jonasnilsberg commented 4 months ago

Hi! Is it possible to make it possible to remove "Move to a new file" from code actions as it is with "Add missing imports" etc?

Make it possible to remove/hide "Mobe to a new file" option: image

My setup: image

Full config: https://github.com/jonasnilsberg/nvim-config

GNRSN commented 3 months ago

+1 🙏

Extremely annoying that it's always a the top. I use a completion ui with preview and sometimes the preview result covers the entire screen + causes lag due to diff size.

Suggestion: Could this be part of the expose_as_code_action option?

kiuKisas commented 1 month ago

it's the last code action on typescript-language-server, it could be great to do the same as it's usually not what you want to do (in my case at least); I ended up calling it unintentionally

KostkaBrukowa commented 2 weeks ago

Is this still an issue? If so can you provide your config and some reproduction code? I don't have this Move to a file in my code_actions