about summary refs log tree commit diff
path: root/fnl/nvrc/keymaps.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-05-18 16:59:07 +0900
committersefidel <contact@sefidel.net>2024-05-18 16:59:07 +0900
commit6a7e4fb630ca7a826aa076799bebb94e9a99ebe5 (patch)
tree46ac30f21d95ae8677e1e327aebd214a0ceaa32b /fnl/nvrc/keymaps.fnl
parentada740e86e6fc2a4447b3ff4ab56fee42c891217 (diff)
downloadnvimrc-6a7e4fb630ca7a826aa076799bebb94e9a99ebe5.tar.gz
nvimrc-6a7e4fb630ca7a826aa076799bebb94e9a99ebe5.zip
chore(keymaps): reformat
Diffstat (limited to 'fnl/nvrc/keymaps.fnl')
-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;")