XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 595 forks source link

Feature: Give the option to use Neovim as a backend #1043

Open Tylerc230 opened 7 years ago

Tylerc230 commented 7 years ago

Neovim is able to be used as a headless backend without a UI. This means that it may be possible to route keypresses from xcode to neovim and show neovim's buffer in xcode. This would allow access to all vim plugins and built in features in Xcode.

JugglerShu commented 7 years ago

Yea that kind of thing is considered. Actually it is possible to pass all the buffer to Neovim or Vim and execute command and apply back the result to Xcode, but I think this is not really smart solution since this would be disable to use Xcode features like auto complete. That is the main reason I'm not doing it.

Tylerc230 commented 7 years ago

Yeah makes sense. I guess the tradeoffs are using vim/neovim plugins in xcode but not xcode auto complete features.

On Thu, Feb 2, 2017 at 4:29 AM, JugglerShu notifications@github.com wrote:

Yea that kind of thing is considered. Actually it is possible to pass all the buffer to Neovim or Vim and execute command and apply back the result to Xcode, but I think this is not really smart solution since this would be disable to use Xcode features like auto complete. That is the main reason I'm not doing it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/XVimProject/XVim/issues/1043#issuecomment-276945025, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbytdpKcHseJlvKLrGmJQOaW44y65FJks5rYcw_gaJpZM4L0EDc .

fiveNinePlusR commented 7 years ago

I think it might be a great time to revisit this idea with the new architecture of xcode forcing your hand at a full rewrite? It would be really nice to have a full featured, full vim as a backing to xcode. Couldn't there be an intercept layer that dispatches xcode specific features before sending the buffer to neovim or having neovim act on the on disk buffer?

Tylerc230 commented 7 years ago

Some of Xcode's completion engine is open source. It's a matter of creating the vim plugins for it.

On Thu, Sep 14, 2017 at 10:28 AM fiveNinePlusR notifications@github.com wrote:

I think it might be a great time to revisit this idea with the new architecture of xcode forcing your hand at a full rewrite? It would be really nice to have a full featured, full vim as a backing to xcode. Couldn't there be an intercept layer that dispatches xcode specific features before sending the buffer to neovim or having neovim act on the on disk buffer?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/XVimProject/XVim/issues/1043#issuecomment-329552968, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbytcjQFxeGcP6tR1ddFv57cRJWgCUUks5siWJbgaJpZM4L0EDc .

fiveNinePlusR commented 7 years ago

@Tylerc230 do you know where that is documented?

Tylerc230 commented 7 years ago

https://github.com/apple/swift/tree/master/tools/SourceKit/docs https://github.com/apple/swift/tree/master/tools/SourceKit/docs

On Sep 14, 2017, at 3:14 PM, fiveNinePlusR notifications@github.com wrote:

@Tylerc230 https://github.com/tylerc230 do you know where that is documented?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/XVimProject/XVim/issues/1043#issuecomment-329623748, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbytdj5q5CZrQ7d_I-u2QT_l_Av46cVks5siaVYgaJpZM4L0EDc.

fiveNinePlusR commented 7 years ago

ah yeah. I have used sourcekitten for completion before for completion in emacs.

https://github.com/jpsim/SourceKitten

Tylerc230 commented 7 years ago

Yep built in source kit. I would love to collaborate with some folks on building some vim plugins for swift.

On Thu, Sep 14, 2017 at 6:19 PM fiveNinePlusR notifications@github.com wrote:

ah yeah. I have used sourcekitten for completion before for completion in emacs.

https://github.com/jpsim/SourceKitten

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/XVimProject/XVim/issues/1043#issuecomment-329650869, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbytVXllCwLEHlH3lXYc_uujGWl6frVks5sidC-gaJpZM4L0EDc .

fiveNinePlusR commented 7 years ago

there is this https://github.com/mitsuse/autocomplete-swift

and https://github.com/keith/sourcekittendaemon.vim

Tylerc230 commented 7 years ago

Yeah there's also deoplete-swift. I don't think either supports multiple files/Xcode workspaces

On Thu, Sep 14, 2017 at 8:22 PM fiveNinePlusR notifications@github.com wrote:

there is this https://github.com/mitsuse/autocomplete-swift

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/XVimProject/XVim/issues/1043#issuecomment-329669546, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbytbuLNvxz3vkty_EpFSg3Oy0yCGfNks5sie1ggaJpZM4L0EDc .