Skip to content
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

How to setup for lisp mode? #1018

Open
svelterust opened this issue Aug 11, 2024 · 3 comments
Open

How to setup for lisp mode? #1018

svelterust opened this issue Aug 11, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@svelterust
Copy link
Contributor

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
Copy link
Owner

@ringawho Can you help this issue? Thanks

@ringawho
Copy link
Contributor

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

@manateelazycat
Copy link
Owner

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

@manateelazycat manateelazycat added the help wanted Extra attention is needed label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants