-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nim layer: indentation is broken on paste #13470
Comments
Confirmed.
CauseBy default Spacemacs advices the yank and evil-paste functions to call spacemacs/layers/+spacemacs/spacemacs-defaults/funcs.el Lines 1465 to 1466 in 0a7ab78
SolutionThe docstring for spacemacs/layers/+spacemacs/spacemacs-defaults/funcs.el Lines 1445 to 1447 in 0a7ab78
Which means that if It can be done now from the (add-to-list 'spacemacs-indent-sensitive-modes 'nim-mode) or if the spacemacs/layers/+lang/nim/packages.el Lines 32 to 38 in 0a7ab78
Currently
The docstring for the
which means that if one only want to stop the automatic indentation sometimes when pasting, then one can press: ResultThe expected behavior is observed when either:
proc foo() =
echo "foo"
proc bar() =
echo "bar"
proc foo() =
echo "foo"
proc bar() =
echo "bar" Windows 1903#### System Info :computer: - OS: windows-nt - Emacs: 26.3 - Spacemacs: 0.300.0 - Spacemacs branch: develop (rev. 0a7ab7873) - Graphic display: t - Distribution: spacemacs - Editing style: vim - Completion: helm - Layers: ```elisp (autohotkey (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t) command-log dap emacs-lisp git helm helpful html imenu-list javascript (markdown :variables markdown-live-preview-engine 'vmd markdown-command "vmd") multiple-cursors nim (org :variables org-agenda-files '("~/org/notes.org")) (shell :variables shell-default-shell 'shell shell-default-height 30 shell-default-position 'bottom) spell-checking (syntax-checking :variables syntax-checking-enable-by-default nil) treemacs version-control) ``` - System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 |
Imho it makes sense to do this by default. But I'm just a newbie with spacemacs, so don't quote me. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I applied the fix of @duianto in the last commit. |
Description![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
nim layer: indentation is broken on paste
Reproduction guide 🪲
Observed behaviour: 👀 💔
Expected behaviour: ❤️ 😄
System Info 💻
(helm auto-completion emacs-lisp org nim python git shell html restructuredtext)
Backtrace 🐾
The text was updated successfully, but these errors were encountered: