Open panshouren opened 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就有对应提示):
光标前面是普通空格,只有JDK的选项:
测试代码如下:
当光标前面是TAB的时候,能弹出Yas-Snippet的选项(而且还有个问题,只有输入snippet的name才有提示,关闭lsp-bridge,输入snippet的key,比如as,ae就有对应提示):
光标前面是普通空格,只有JDK的选项: