summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/bindings/init.fnl
blob: 80b67339025be06276c8538c865e8f29936d10ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(import-macros {:mixed-table · : 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
 [(· :<leader>e vim.diagnostic.open_float & :desc "diag float")
  (· :<leader>q vim.diagnostic.setloclist & :desc "diag locations")
  (· "[d"       vim.diagnostic.goto_prev  & :desc "prev diag")
  (· "]d"       vim.diagnostic.goto_next  & :desc "next diag")])