First - why do you want to do an engine swap?
Second - the most common engine swap upgrade on a Samurai is probably the Suzuki 1.6 from a tracker or Sidekick - relatively easy, well documented
Last but by no means least - diesels have narrower power bands, and produce their power at lower rpms than gasoline engines - make sure you understand what the tradeoffs with a diesel swap are before you start.