Wed, 25 Sep 2024 15:03:13 -0500
No LSP autostart when read-only
I think nvim actually threw out 'view' argc detection, I just use -R and alias
view to it.
#!/usr/bin/env ruby File.join(Dir.home, '.rbrc').tap { |f| load f if File.exists?(f) } def execute(_, code) puts _.instance_eval(&code) rescue Errno::EPIPE exit end single_line = ARGV.delete('-l') code = eval("Proc.new { #{ARGV.join(' ')} }") single_line ? STDIN.each { |l| execute(l.chomp, code) } : execute(STDIN.each_line, code) # https://raw.githubusercontent.com/thisredone/rb/master/rb