Skip to content

Instantly share code, notes, and snippets.

@tani
Last active October 29, 2020 03:00
Show Gist options
  • Save tani/5ecd301cec23a7d67ad3ee8f7bb64125 to your computer and use it in GitHub Desktop.
Save tani/5ecd301cec23a7d67ad3ee8f7bb64125 to your computer and use it in GitHub Desktop.
cl-lsp

Test for CL-LSP

Setup test environment

Environment

  • Ubuntu 20.04 (Kubuntu)
  • Terminal Emulator: Konsole 19.12.3
  • Input Method and its engine: fcitx, fcitx-mozc

Rquirement

  • docker

Instruction

$ docker build . -t cl-lsp
$ docker run --rm -it cl-lsp bash
$ echo "(print  (concatenate 'string \"リボ\" \"\"))" > test.lisp
$ vim test.lisp

After the opening the file with vim, modify the sexp to (print (concatenate 'string "リボ" "払い")), and type :LspStatus.

FROM debian:10
WORKDIR /work
ENV LANG=C.UTF-8
#
# Install dependencies
#
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git curl jq vim \
&& curl -sOL `curl -s https://api.github.com/repos/roswell/roswell/releases/latest | jq -r '.assets | .[] | select(.name|test("deb$")) | .browser_download_url'` \
&& apt-get install -y ./*.deb \
&& apt-get clean \
&& rm -rf *.deb /var/lib/apt/lists/*
#
# Setup cl-lsp
#
RUN ros setup
RUN ros install cxxxr/cl-lsp
#
# Setup vim
#
RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
COPY init.vim /root/.vimrc
RUN vim +'PlugInstall --sync' +'qa'
call plug#begin('~/.vim/plugged')
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
call plug#end()
set omnifunc=lsp#complete
let g:lsp_settings = {
\ 'cl-lsp': {
\ 'disabled': 0
\ }
\}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment