diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-09 09:22:50 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-10-09 09:22:50 +0200 |
| commit | 6e9b5ded52505dae84431ef966e62a105b0b7827 (patch) | |
| tree | 2d1faf2db7d51f1eaa059d851e91cd6ae6a9349c | |
| parent | b1374408d4c9abc3ea1f9d8bc7f53b9afdefc1e7 (diff) | |
configure for zig
| -rw-r--r-- | common/home/programs/nixvim/plugins/default.nix | 1 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/lsp.nix | 6 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/zig.nix | 6 |
3 files changed, 12 insertions, 1 deletions
diff --git a/common/home/programs/nixvim/plugins/default.nix b/common/home/programs/nixvim/plugins/default.nix index efe4988..bc76d9c 100644 --- a/common/home/programs/nixvim/plugins/default.nix +++ b/common/home/programs/nixvim/plugins/default.nix @@ -11,6 +11,7 @@ let "friendly-snippets" "cmp" "lsp" + "zig" ]; in builtins.listToAttrs ( diff --git a/common/home/programs/nixvim/plugins/lsp.nix b/common/home/programs/nixvim/plugins/lsp.nix index 47e229f..b60994e 100644 --- a/common/home/programs/nixvim/plugins/lsp.nix +++ b/common/home/programs/nixvim/plugins/lsp.nix @@ -28,6 +28,10 @@ package = null; cmd = [ "ocamllsp" ]; }; + + zls = { + enable = true; + }; }; keymaps.lspBuf = { @@ -36,7 +40,7 @@ "gt" = "type_definition"; "gi" = "implementation"; "K" = "hover"; - "rn" = "rename"; + "<space>rn" = "rename"; "<space>ca" = "code_action"; "<space>f" = "format"; }; diff --git a/common/home/programs/nixvim/plugins/zig.nix b/common/home/programs/nixvim/plugins/zig.nix new file mode 100644 index 0000000..156c3cd --- /dev/null +++ b/common/home/programs/nixvim/plugins/zig.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + settings = { + fmt_autosave = 0; + }; +} |