Comments (10)
I can confirm this, it basically makes it impossible to edit the file
from polymode.
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.
I have a (setq-default polymode-lsp-integration nil)
as a drastic alternative.
from polymode.
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.
@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.
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.
I'm also experiencing similar behavior. I basically can't work with Rmd files while in polymode.
from polymode.
Please help.
from polymode.
It used to work OK, but now after upgrading something it indeed became unusable. :(
from polymode.
(setq-default polymode-lsp-integration nil)
doesn't remove the jumping for me QAQ
from polymode.
Related Issues (20)
- Help with a (hopefully) simple polymode?
- Reproducible error: stuck in latex-mode
- can't find polymode via package-install? HOT 1
- electric-indent-mode
- How to run a function is indirect buffers with the same major mode only?
- Typescript-xml polymode
- Setting mode file local variable to polymode applies itself recursively infinitely until cancelled
- Background Adjustment when Background Unspecified
- polymode creates additional [web] buffer
- Interaction with nix-mode: font-lock broken HOT 4
- Chunks not following automatic Emacs switch to light/dark theme HOT 5
- Polymode, Poly-COMEEGA and COMEEGA (Collaborative Org Mode Enhanced Emacs Generalized Authorship)
- inner mode indentation not works on the first line after head mark
- org-mode links become invisible HOT 3
- Polymode does not work in org-edit-special
- eglot sees the whole outer buffer content HOT 3
- hs-hide-all gives unbalanced parentheses error when it shouldn't in some Rnw buffers
- Inconsistent font size in heads
- Beginning of the Polymode buffer is ignored by flymake HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polymode.