From ede6da40b14cb67adde5a468aaa93be90a73e4ed Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Fri, 8 Oct 2021 08:56:13 -0500 Subject: zig --- dotemacs | 4 ++++ dotzshrc | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dotemacs b/dotemacs index 2b03d83..07b7997 100644 --- a/dotemacs +++ b/dotemacs @@ -65,6 +65,10 @@ ;; run auto-fill whenever editing markdown (add-hook 'markdown-mode-hook 'auto-fill-mode) +;; zig +(require 'lsp-mode) +(setq lsp-zig-zls-executable "~/.zig/zls-release/zls") + ;; ------------------------------------------------------------- (defun insert-time () (interactive) diff --git a/dotzshrc b/dotzshrc index 64305bf..de5152a 100644 --- a/dotzshrc +++ b/dotzshrc @@ -21,8 +21,11 @@ export PERLBREW_PATHS="$PERLBREW_VERSION_ROOT/bin" # perl paths to add to INC export LOCAL_INC_PATHS="$HOME/repos/grokloc-perl5/lib" +# zig +export ZIG_ROOT="$HOME/.zig/zig-release" + # paths -export HOMEBINPATHS="$PERLBREW_PATHS:$HOME/local/bin:$HOME/bin:$GOPATH/bin" +export HOMEBINPATHS="$PERLBREW_PATHS:$HOME/local/bin:$HOME/bin:$GOPATH/bin:$ZIG_ROOT" export PATH="$HOMEBINPATHS:$PATH" # text -- cgit v1.2.3