manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.46k stars 214 forks source link

关闭indent-tabs-mode后,Yas-Snippet没有补全提示 #1112

Open panshouren opened 1 week ago

panshouren commented 1 week ago

测试代码如下:

(global-whitespace-mode)

(setq-default indent-tabs-mode nil)

(use-package yasnippet)
(yas-global-mode 1)
(use-package yasnippet-snippets)

 (use-package lsp-bridge
   :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge"
                          :files (:defaults "*.el" "*.py" "acm" "core" "langserver" "multiserver" "resources")
                          :build (:not compile))
   :init
   (global-lsp-bridge-mode))

 (require 'lsp-bridge-jdtls) 
 (setq lsp-bridge-enable-auto-import t)
 (setq lsp-bridge-jdtls-jvm-args '("-javaagent:/home/pansr1/.m2/repository/org/projectlombok/lombok/1.18.28/lombok-1.18.28.jar"))

当光标前面是TAB的时候,能弹出Yas-Snippet的选项(而且还有个问题,只有输入snippet的name才有提示,关闭lsp-bridge,输入snippet的key,比如as,ae就有对应提示): Screenshot from 2024-11-14 11-47-01

光标前面是普通空格,只有JDK的选项: Screenshot from 2024-11-14 11-47-47