~jgart/dotfiles

dotfiles/private_dot_config/vis/config.fnl -rw-r--r-- 603 bytes
a79c02f9jgart add guixfzf-shell 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(fn subscribe [event attrs]
  (let [actual-event (-> event
                         (: :upper)
                         (: :gsub "-" "_"))]
    (vis.events.subscribe (. vis.events actual-event)
                          (fn []
                            (each [k v (pairs attrs)]
                              (vis:command (string.format "set %s %s" k v)))))))

(fn nmap [k b]
  (vis:map vis.modes.NORMAL k b))

(subscribe :win-open
           {:number "on"
            :autoindent "on"
            :tabwidth 4
            :expandtab "on"
            :ignorecase "on"})

(nmap ";;" :<vis-window-next>)