summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/bindings/init.fnl
blob: c350db456874fa2b5010f858eb986f4b3b5c0a2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(import-macros {: tbl : recc} :toast.macros)

(each [_ v (ipairs [:builtins
                    :plugins])]
  (require (.. :bindings. v)))

; general bindings that aren't specific to a plugin
(recc :which-key :add
  ; diagnostics
 [(tbl :<leader>e vim.diagnostic.open_float & :desc "diag float")
  (tbl :<leader>q vim.diagnostic.setloclist & :desc "diag locations")
  (tbl "[d"       vim.diagnostic.goto_prev  & :desc "prev diag")
  (tbl "]d"       vim.diagnostic.goto_next  & :desc "next diag")])