summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2021-10-08 08:56:13 -0500
committerBrad Clawsie <brad@b7j0c.org>2021-10-08 08:56:13 -0500
commitede6da40b14cb67adde5a468aaa93be90a73e4ed (patch)
tree01a739625512c4578836cc2ee0cd585c6dc39f6b
parent2706112b521e7982bd761ad613511610556f313d (diff)
zig
-rw-r--r--dotemacs4
-rw-r--r--dotzshrc5
2 files changed, 8 insertions, 1 deletions
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