(defkeybind :mode "normal" :key "h" :action "move-right")
(defkeybind :mode "normal" :key "<C-q>" :action "quit")
(defkeybind :mode "normal" :key "<C-p>" :action "picker.files"
:description "open the file picker")
(deftheme :preset "nord")
(defoption :name "number" :value "true")
(defoption :name "relativenumber" :value "true")
(defoption :name "tabstop" :value "4")
(defcmd :name "write-all"
:description "Write every modified buffer"
:action "buffer.write-all")
(defhook :event "BufWritePost" :command "run-formatter")
(defhook :event "ModeChanged" :to "insert"
:command "highlight-cursor-line")
(defft :ext "rs" :mode "rust")
(defft :ext "py" :mode "python")
(defft :ext "lisp" :mode "lisp")
(defmode :name "rust"
:extensions ("rs")
:tree-sitter "rust"
:commentstring "// %s"
:indent 4)
(defmode :name "lisp"
:extensions ("lisp" "cl" "el")
:tree-sitter "commonlisp"
:commentstring ";; %s"
:indent 2
:structural-lisp #t)
(defabbrev :trigger "teh" :expansion "the")
(defsnippet :trigger "fn"
:body "fn ${1:name}(${2}) -> ${3} { ${0} }"
:filetype "rust"
:description "rust function boilerplate")