about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--fnl/nvrc/keymaps.fnl19
1 files changed, 10 insertions, 9 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl
index c515aff..80c1b31 100644
--- a/fnl/nvrc/keymaps.fnl
+++ b/fnl/nvrc/keymaps.fnl
@@ -3,7 +3,7 @@
 
 ;; TODO: move plugin-specific keybinds to packs/
 
-(map! [nv :silent] :<space> "<Nop>")
+(map! [nv :silent] :<space> :<Nop>)
 (setv! mapleader " ")
 (setv! maplocalleader ",")
 
@@ -22,8 +22,9 @@
 (map! [n :silent] :<leader>ya ":%y+ <cr>")
 (map! [n] :<leader>c ":SwitchPalette ")
 
-(map! [n :silent] :<leader>/  ((. (. (. (require :Comment.api) :toggle) :linewise)
-                          :current)))
+(map! [n :silent] :<leader>/ ((. (. (. (require :Comment.api) :toggle)
+                                    :linewise)
+                                 :current)))
 (map! [v :silent] :<leader>/
       ":lua require('Comment.api').toggle.linewise(vim.fn.visualmode()) <cr>")
 
@@ -71,10 +72,10 @@
 (map! [v] :<A-e> ":m '>+1<cr>gv=gv")
 (map! [v] :<A-r> ":m '<-2<cr>gv=gv")
 
-(map! [n] :<C-h> "<C-w>h")
-(map! [n] :<C-j> "<C-w>j")
-(map! [n] :<C-k> "<C-w>k")
-(map! [n] :<C-l> "<C-w>l")
+(map! [n] :<C-h> :<C-w>h)
+(map! [n] :<C-j> :<C-w>j)
+(map! [n] :<C-k> :<C-w>k)
+(map! [n] :<C-l> :<C-w>l)
 
 ; LSP
 (map! [n] :fl (vim.lsp.buf.declaration))
@@ -94,7 +95,7 @@
 
 ;; Helix-like movements
 (map! [nv] :gh :0)
-(map! [nv] :gl :$)
-(map! [nv] :gs :_)
+(map! [nv] :gl "$")
+(map! [nv] :gs "_")
 (map! [nv] :ge :G)
 (map! [nv] :g. "g;")