Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by xigoi

1 month ago

Why would you need a language server for that? You simply prepend the indentation of the current line to every line of the pasted text.

2 comments

xigoi

Reply

rao-v  1 month ago

Do you know of a IDE that does this automagically?

  • xigoi  1 month ago

    I use Neovim with the yanky plugin.

    https://github.com/gbprod/yanky.nvim

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities