f70ebe6f9e
Add rust lsp completion with company and bindings
20 lines
586 B
EmacsLisp
20 lines
586 B
EmacsLisp
;;; config.el --- Rust Layer packages File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Chris Hoeppner <me@mkaito.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
;; Variables
|
|
|
|
(spacemacs|define-jump-handlers rust-mode)
|
|
|
|
(defvar rust-backend 'racer
|
|
"The backend to use for completion. Possible values are `lsp' `racer'.")
|
|
|
|
(defvar rust-rls-cmd '("rustup" "run" "nightly" "rls")
|
|
"lsp-rust command. Set to nil for environment configuration. Defaults to rustup nightly rls")
|