manateelazycat / lsp-bridge

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

How to setup for lisp mode? #1018

Open svelterust opened 2 months ago

svelterust commented 2 months ago
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0)
lsp-bridge commit: ccf6d1fbe9e1fbd19451b98f626b094051f4a6f4

Specifically with sbcl. When I use following, with (acm-enable-capf t) I just get the regular capf menu open instead of autocomplete:

(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))
  :custom
  (acm-enable-yas nil)
  (acm-enable-icon nil)
  (acm-enable-tabnine nil)
  (acm-enable-codeium nil)
  (acm-enable-capf t)
  (acm-enable-search-file-words nil)
  (acm-doc-frame-max-lines 25)
  (lsp-bridge-nix-lsp-server "nil")
  (lsp-bridge-enable-hover-diagnostic t)
  (lsp-bridge-code-action-enable-popup-menu nil)
  (lsp-bridge-enable-inlay-hint nil)
  (lsp-bridge-inlay-hint-overlays '())
  :init
  (setq-default lsp-bridge-enable-inlay-hint nil)
  (global-lsp-bridge-mode)
  (let ((filtered-list (cl-delete 'lsp-bridge-not-match-hide-characters lsp-bridge-completion-popup-predicates)))
    (setq lsp-bridge-completion-popup-predicates filtered-list))
  ;; <ret> is very annoying because lsp-bridge is too fast, unset it
  (keymap-unset acm-mode-map "RET")
  (define-key lsp-bridge-mode-map (kbd "C-c e") 'lsp-bridge-diagnostic-jump-next)
  (define-key lsp-bridge-mode-map (kbd "C-c f") 'lsp-bridge-find-def)
  (define-key lsp-bridge-mode-map (kbd "C-c n") 'lsp-bridge-rename)
  (define-key lsp-bridge-mode-map (kbd "C-c a") 'lsp-bridge-code-action)
  (define-key lsp-bridge-mode-map (kbd "C-c r") 'lsp-bridge-find-references)
  (define-key lsp-bridge-mode-map (kbd "C-c h") 'lsp-bridge-popup-documentation))

image

Error running timer ‘acm-template-candidate-update’: (wrong-type-argument sequencep lsp-bridge-monitor-pre-command)
manateelazycat commented 2 months ago

@ringawho Can you help this issue? Thanks

ringawho commented 2 months ago

Do you use slime or sly? Could you provide me with your slime or sly configuration?

manateelazycat commented 1 month ago

Looks some Emacs config make lsp-bridge got wrong-type-argument sequencep error