Giter VIP home page Giter VIP logo

lspce's Introduction

LSPCE

Introduction

LSPCE - LSP Client for Emacs, is a simple lsp client that is implemented as an Emacs module.

It does not want to be a full-featured lsp client. The features it supports are:

  • find definitions/references/implementatoins (as a xref backend)
  • completion (as a capf function) support snippet too.
  • diagnostics (as a flymake backend) process diagnostics when idle.
  • hover (triggered by `lspce-help-at-point`)

The features planed to implement:

  • signature help
  • code action
  • rename
  • ā€¦

I have tested LSPCE with `pyright` and `rust-analyzer`, and Iā€™m using it to develop itself :).

Installation

At the moment, you can only install LSPCE by cloning this repo and compile rust code manually.

Installing from the Git Repository

Before installing LSPCE, you should install rust and cargo.

$ git https://github.com/zbelial/lspce.git ~/.emacs.d/site-lisp/lspce
$ cd ~/.emacs.d/site-lisp/lspce/rs
$ cargo build

Or (if you use Linux) you can download a .so file I compiled on a Manjaro with rust 1.61.0.

Get started

(use-package lspce
  :load-path "/path/to/lspce/lisp"
  :init (progn
          (add-to-list 'load-path "/path/to/lspce/rs/target/debug")

          (require 'lspce-module)
          )
  :config (progn
            (setq lspce-send-changes-idle-time 1)

            ;; enable lspce in particular buffers
            ;; (add-hook 'rust-mode-hook 'lspce-mode)
            )
  )

Acknowledgements

Thanks to emacs-module-rs, which makes implementing LSPCE possible. Thanks to eglot and lsp-mode, I learned a lot about LSP while developing this package.

lspce's People

Contributors

zbelial avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.