Git Product home page Git Product logo

Comments (4)

tecosaur avatar tecosaur commented on September 28, 2024

You should be able to just copy that block into your config. The way it should work is by creating a temporary file for the LSP server to be called on, linking it to the buffer, and starting LSP up. It's not my own code (credit to @seagle0128), but it's worked fairly well for me :)

from emacs-config.

wuqui avatar wuqui commented on September 28, 2024

Does it something similar to lsp-org from lsp-mode or is that something you use additionally?

Do you do your coding in the org buffer or in org-edit-special buffers?

Edit: it seems to work now. Just in org-edit-special buffers, but that's still nice. The only downside is that the completions etc. only know about the current code block and can't make intelligent suggestions for variables defined in other blocks or libraries loaded in other blocks. But I guess that's just a general limitation and not some error on my side, right?

from emacs-config.

tecosaur avatar tecosaur commented on September 28, 2024

Unfortunately, yea. Not sure how well lsp-org works, it wasn't around when I started using this.

from emacs-config.

wuqui avatar wuqui commented on September 28, 2024

I have now switched from using LSP to just using anaconda-mode in the org file. I'm using emacs-jupyter and I'm evaluating stuff from the org buffer using C-x C-e, so I don't even have to rely on org-edit-special buffers anymore. This is a great setup for me now, just to let you know in case you're interested. I haven't found anybody else suggesting this, to my surprise. And thanks anyways.

from emacs-config.

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.