Giter Club home page Giter Club logo

Comments (9)

cheshire avatar cheshire commented on August 25, 2024

+1 I think this would be very useful as well

from merlin.

kit-ty-kate avatar kit-ty-kate commented on August 25, 2024

I do also agree.

from merlin.

rgrinberg avatar rgrinberg commented on August 25, 2024

+1

(sorry for the spam)

from merlin.

cheshire avatar cheshire commented on August 25, 2024

Ocamldoc provides the documentation in a number of parse-able formats, so extracting the documentation should be possible. In terms of GUI, in VIM it could be mapped to K, which displays the man page by default (much like python mode uses pydoc, ocaml mode could use ocamldoc)

from merlin.

trefis avatar trefis commented on August 25, 2024

So, I have a branch ( ocamldoc ) which does that.
Remarks:

  • it retrieves documentation comments from the cmts, not from sources. This means that if your build system uses camlp4, you won't have any documentation from merlin (as camlp4 drops the comments, so there's nothing in the cmts)
  • the integration with vim/emacs is rudimentary, I am still working on it
  • I'm reluctant to bind this to K in vim, K does work with ocaml (at least with the stdlib) and I'm not sure we want to break that.

from merlin.

roshanjames avatar roshanjames commented on August 25, 2024

Thomas, this is a great step forward.
On Fri, Mar 13, 2015 at 6:33 AM Thomas Refis [email protected]
wrote:

So, I have a branch ( ocamldoc ) which does that.
Remarks:

  • it retrieves documentation comments from the cmts, not from sources.
    This means that if your build system uses camlp4, you won't have any
    documentation from merlin (as camlp4 drops the comments, so there's nothing
    in the cmts)
  • the integration with vim/emacs is rudimentary, I am still working on
    it
  • I'm reluctant to bind this to K in vim, K does work with ocaml (at
    least with the stdlib) and I'm not sure we want to break that.


Reply to this email directly or view it on GitHub
#55 (comment)
.

from merlin.

edwintorok avatar edwintorok commented on August 25, 2024

I see that this is now in Merlin 2.2, great job!
In emacs it works when I use company mode for completion and press F1, but not with auto-complete.
Is company mode the prefered completion engine for merlin or is it auto-complete?

from merlin.

let-def avatar let-def commented on August 25, 2024

If there was a favorite completion engine, I would say company-mode, because it's the one I use the most when I maintain emacs mode.

I am working on emacschism branch, to separate core merlin management from integration with other emacs services, in the hope it will make it easier to maintain and attract externel contribution.

from merlin.

let-def avatar let-def commented on August 25, 2024

Implemented for some time. More communication around the feature is coming.

from merlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.