-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Second attempt at a neovim-backed repl #82
base: master
Are you sure you want to change the base?
Conversation
where do you run this? |
@Moelf I run it in a separate terminal; this is in a fish shell, so the while syntax may not work with bash. You should be able to run Alternately, if you leave out the (I really should write up a doc about development, my apologies!) |
I specifically switched to next thing I get is julia> Unhandled Task ERROR: MethodError: no method matching nvim_connect(::Int64, ::VimBindings.Nvim.ReplBindingsHandler)
Closest candidates are:
nvim_connect(::String, ::Any...)
@ Neovim ~/.julia/packages/Neovim/Gi1rU/src/Neovim.jl:27
Stacktrace:
[1] start(addr::Int64)
@ VimBindings.Nvim ~/Documents/github/VimBindings.jl/src/nvim.jl:14
[2] init
@ ~/Documents/github/VimBindings.jl/src/VimBindings.jl:176 [inlined]
[3] prompt!(term::REPL.Terminals.TTYTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ VimBindings ~/Documents/github/VimBindings.jl/src/lineeditalt.jl:14
[4] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState) I think you may have a specialized method somewhere locally? |
Sorry, I realized I left an `end` out, probably what caused issues!
…On Sun, Jul 30, 2023, 3:32 PM Jerry Ling ***@***.***> wrote:
I specifically switched to bash from fish thought it's some bash thing 🤦
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZAXBESWJDIEUHDRMIJOS3XS2ZDFANCNFSM6AAAAAA24YDLCM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Oh, you're right. I'm about to board a flight, I'll try to get that into this PR soon though. My bad. |
Alright, I've made a fork of Neovim.jl with my changes, try to https://github.com/caleb-allen/Neovim.jl Probably worth making a PR later on, once development has settled. Let me know if you encounter more issues |
The majority of the relevant code in the PR is in nvim.jl; the majority of the package code is bypassed. You can also ignore/delete any commented code. |
Not ready for use!
For development:
Start the "development instance" with:
nvim --listen '127.0.0.1:5555'
Start the logging output with:
Then run the package:
julia -i -e 'using VimBindings; VimBindings.enable_logging("Nvim")
For reference, this branch is using Neovim.jl. The documentation for the neovim api are very helpful: https://neovim.io/doc/user/api.html