问题如下:
屏幕记录可能太短,所以我上传了一个更长的:enter image description here
当我输入代码并按tab键时,屏幕上出现了print($0)。并且光标不在应该跟随(的正确位置,我猜我在yas-snippet中有错误的配置,请给我一些支持。谢谢。
dotspacemacs-configuration-layers如下:
;; List of configuration layers to load.
dotspacemacs-configuration-layers
'(
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
;; `M-m f e R' (Emacs style) to install them.
;; ----------------------------------------------------------------
chinese(chinese :variables chinese-default-input-method 'pinyin
chinese-enable-youdao-dict t)
(auto-completion :variables company-idle-delay 0.1
auto-completion-enable-sort-by-usage t
auto-completion-enable-snippets-in-popup t
auto-completion-tab-key-behavior 'cycle
:disabled-for org);;
better-defaults;;
emacs-lisp
git;; 开启git支持
helm
lsp
(python :variables
python-backend 'lsp
python-indent-offset 4
python-format-on-save t;;
python-sort-imports-on-save t;;
)
java;;
markdown;;
multiple-cursors
;;
org;;
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
spell-checking;;
syntax-checking;;
;; version-control
treemacs
latex;;
)发布于 2020-03-29 06:09:02
我按如下方式编辑配置。这很有帮助,但我需要输入"(“。有什么好的解决方案吗?谢谢。
(python :variables
python-backend 'lsp
python-indent-offset 4
python-format-on-save t;;
python-sort-imports-on-save t;
lsp-enable-snippet nil;
)https://stackoverflow.com/questions/60898546
复制相似问题