michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.5k stars 47 forks source link

MATLAB/Octave support? #160

Open krishnakumarg1984 opened 2 years ago

krishnakumarg1984 commented 2 years ago

Does this already support MATLAB/Octave? I am forced to use MATLAB in a recent project, and was looking for a suitable neovim REPL plugin.

Support Level to achieve line-level support

michaelb commented 2 years ago

Hey!

No, it doesn't... Yet

But given the little time I have right now, matlab being a pain, and the scale of the project sniprun is most relevant for (small ones), I think you may not want to wait for full-featured matlab support.

It may be possible (and simple) to do a basic 'bloc-level' interpreter yourself, but REPL has more chances than not (especially since matlab ) to be difficult...

krishnakumarg1984 commented 2 years ago

Sigh. This was sort of expected. MATLAB is a genuine pain, a dinosaur in the modern era, with its proprietary and often outdated tooling.

That said, there's a lot of legacy code, and the automotive industry continues to rely on MATLAB, with its proprietary toolboxes. And support will be appreciated.

A MATLAB interpreter session can be real REPL (i.e. no need of faking a REPL). The last time I used MATLAB was about 5 years ago, and there was a vimscript plugin (https://github.com/daeyun/vim-matlab) that worked reasonably well to provide a REPL with even ability to execute cells etc.