summaryrefslogtreecommitdiffstats
path: root/nixos/modules/nixvim/keymaps.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/nixvim/keymaps.nix')
-rw-r--r--nixos/modules/nixvim/keymaps.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/nixvim/keymaps.nix b/nixos/modules/nixvim/keymaps.nix
new file mode 100644
index 0000000..e792ea0
--- /dev/null
+++ b/nixos/modules/nixvim/keymaps.nix
@@ -0,0 +1,15 @@
+{
+ programs.nixvim = {
+ globals = {
+ mapleader = "\\";
+ maplocalleader = "\\";
+ };
+
+ keymaps = [
+ {
+ key = "<leader>n";
+ action = "<cmd>Neotree<CR>";
+ }
+ ];
+ };
+}