This commit is contained in:
Henrik Lissner 2016-03-27 00:46:52 -04:00
parent 817a41a739
commit 63f03bde2d
3 changed files with 25 additions and 7 deletions

18
ext/Makefile Normal file
View file

@ -0,0 +1,18 @@
all: rust csharp
rust:
echo "Installing Rust dependencies"
git clone --depth 1 --recursive https://github.com/rust-lang/rust.git rust
git clone --depth 1 --recursive https://github.com/phildawes/racer.git racer-src
cd racer-src && cargo build --release
mv racer-src/target/release/racer ./racer
rm -rf racer-src
csharp:
echo "Installing C# dependencies"
git clone --depth 1 --recursive https://github.com/OmniSharp/omnisharp-server omnisharp
cd omnisharp && xbuild
mv omnisharp/bin/Debug/OmniSharp.exe ./OmniSharp.exe
rm -rf omnisharp

View file

@ -9,12 +9,12 @@
;; unity shaders ;; unity shaders
(use-package shader-mode :mode "\\.shader$") (use-package shader-mode :mode "\\.shader$")
(setq omnisharp-auto-complete-want-documentation nil
omnisharp-server-executable-path (concat narf-ext-dir "/OmniSharp.exe"))
(use-package omnisharp (use-package omnisharp
:defer t :defer t
:preface :when (file-exists-p omnisharp-server-executable-path)
(setq omnisharp-server-executable-path "~/Dropbox/lib/omnisharp-server/OmniSharp/bin/Debug/OmniSharp.exe"
omnisharp-auto-complete-want-documentation nil)
:if (file-exists-p omnisharp-server-executable-path)
:init :init
(add-hook! csharp-mode '(emr-initialize omnisharp-mode)) (add-hook! csharp-mode '(emr-initialize omnisharp-mode))
:config :config

View file

@ -10,10 +10,10 @@
:config (add-hook! rust-mode 'flycheck-mode)) :config (add-hook! rust-mode 'flycheck-mode))
(use-package racer (use-package racer
:when (file-exists-p "/usr/local/bin/racer") :when (file-exists-p (concat narf-ext-dir "/racer"))
:config :config
(setq racer-cmd "/usr/local/bin/racer" (setq racer-cmd (concat narf-ext-dir "/racer")
racer-rust-src-path "~/Dropbox/lib/rust/src/") racer-rust-src-path (concat narf-ext-dir "/rust/src/"))
(map! :map rust-mode-map :m "gd" 'racer-find-definition) (map! :map rust-mode-map :m "gd" 'racer-find-definition)
;; TODO Unit test keybinds ;; TODO Unit test keybinds