Coder Social home page Coder Social logo

Comments (10)

gdkrmr avatar gdkrmr commented on July 3, 2024 3

I can confirm this, it basically makes it impossible to edit the file

from polymode.

AlexDaniel avatar AlexDaniel commented on July 3, 2024 3

Alright, I found this commit: 2094c92#diff-7a892d2433cc77b44621c3724f45b25815a7c3c98ad7fa9b6531ca252f927ff3R308

So I went to the source code of the package and changed t to nil. Now the cursor no longer jumps. I have no idea what it means for lsp, I use it but not as much. Probably it breaks lsp, but at least polymode itself works.

from polymode.

maikol-solis avatar maikol-solis commented on July 3, 2024 3

I have a (setq-default polymode-lsp-integration nil) as a drastic alternative.

from polymode.

gdkrmr avatar gdkrmr commented on July 3, 2024 2

I think the culprit is lsp-managed-mode if you navigate inside of a code chunk and disable lsp-managed-mode there, the jumping stops. I havent' tested this extensively yet.

from polymode.

jrgant avatar jrgant commented on July 3, 2024 2

@AlexDaniel Thank you for this sleuthing. Seems to be working for me too.

I decided to set polymode-lsp-integration in my config.el for each language mode I use regularly in polymode, which should avoid having to reset this variable in the polymode source every time the package gets updated.

I use Doom Emacs, so you might have to set the hooks differently if you don't, but here's what I'm doing now:

(setq-hook! ess-r-mode polymode-lsp-integration nil)
(setq-hook! sh-mode polymode-lsp-integration nil)
(setq-hook! yaml-mode polymode-lsp-integration nil)
(setq-hook! markdown-mode polymode-lsp-integration nil)
(setq-hook! python-mode polymode-lsp-integration nil)

from polymode.

AlexDaniel avatar AlexDaniel commented on July 3, 2024 1

Now more than one month later, I updated emacs and all related packages, and my hotfix to the file was reverted. This immediately brought the problem back. I edited the file again and the workaround is still working.

from polymode.

jrgant avatar jrgant commented on July 3, 2024

I'm also experiencing similar behavior. I basically can't work with Rmd files while in polymode.

from polymode.

lebensterben avatar lebensterben commented on July 3, 2024

@yyoncho

Please help.

from polymode.

AlexDaniel avatar AlexDaniel commented on July 3, 2024

It used to work OK, but now after upgrading something it indeed became unusable. :(

from polymode.

kchanqvq avatar kchanqvq commented on July 3, 2024

(setq-default polymode-lsp-integration nil) doesn't remove the jumping for me QAQ

from polymode.

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.