Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia support? #13

Open
Ottermanns opened this issue Mar 24, 2021 · 4 comments
Open

Julia support? #13

Ottermanns opened this issue Mar 24, 2021 · 4 comments

Comments

@Ottermanns
Copy link

I have been using intim for quite some time with R and Python. Really a great plugin. Works (almost) perfectly for me. The only thing I miss is Julia support. That would be my data scientist's dream ;-) Would it be possible to add it? I am afraid I am not experienced enough to contribute to this in a useful way.

@iago-lito
Copy link
Owner

Hi @Ottermanns ! I'm sorry I'm more than a year late because Github is not sending me notifications if you're not explicitly pinging me when opening an issue here :\ What exactly are you expecting from a "Julia support"? My personal usage of intim+Julia looks like

call IntimSetLanguage('julia')
call Intim_invokeCommand('julia', 'julia --project=. --threads 1')
call Intim_headedExpression('julia', ",ln", "length")
call Intim_postInvokeCommands('julia', ['using Revise'])
" ..etc.

(:help Intim.txt)
Would anything like this be useful? Or would there still be something missing?

@alaindanet
Copy link
Contributor

@iago-lito I can confirm that it works for me!

here is my .vimrc

autocmd Bufenter *.jl call IntimSetLanguage("julia")
autocmd Bufenter *.jl call Intim_invokeCommand('julia', 'julia --project=. --threads 1')
autocmd Bufenter *.jl call Intim_headedExpression('julia', ",ln", "length")
autocmd Bufenter *.jl call Intim_postInvokeCommands('julia', ['using Revise'])

@Ottermanns
Copy link
Author

Thanks. I will try that. In the meantime I switched to slime. But maybe intim will work also ...

@iago-lito
Copy link
Owner

iago-lito commented Oct 3, 2022

FWIW @Ottermanns, intim support for Julia help pages have just been introduced in 46ec5a0. You should be able to enjoy it now with anything akin to:

nmap <F1> <Plug>IntimGetHelpWord
vmap <F1> <Plug>IntimGetHelpSelection

Next on the list (whenever I either find spare time or contributors) is to also feature dynamic coloration of variables like intim already does for R and Python :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants