company-lsp icon indicating copy to clipboard operation
company-lsp copied to clipboard

Completion does not work on a digestif language server using Emacs with the lsp-mode package.

Open hongyi-zhao opened this issue 3 years ago • 0 comments

On Ubuntu 20.04, I try to test the Emacs with the lsp-mode package based setting according to the instruction here using the following steps:

  1. Install digestif according to the instruction here:
$ git clone https://github.com/astoff/digestif.git digestif.git
$ cd digestif.git/scripts
# Bootstrap digestif with the self-installing wrapper script.
$ ./digestif
# Place it in your $PATH
$ ln -sfr digestif ~/.local/bin
  1. Installation and setting of Emacs, auctex, lsp-mode, and relevant packages through straight:
(straight-use-package
 `( auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    ;("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex")
                    ("./autogen.sh")
                    ("./configure")
                    ("make")
                    ("sudo" "make" "install"))))))
                  
(load "auctex.el" nil t t) 
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

(use-package lsp-mode)
(use-package company-lsp)
(require 'company-lsp)
(push 'company-lsp company-backends)
(add-to-list 'company-lsp-filter-candidates '(digestif . nil))

Then I open some TeX document and still can't have the Digestif enabled. OTOH, I've successfully configured and tested Emacs with the Eglot package based approach as described here.

Any hints for this problem will be highly appreciated.

Regards, HY

hongyi-zhao avatar Jun 15 '21 23:06 hongyi-zhao