summaryrefslogtreecommitdiff
path: root/fnl/plugins/neogit.fnl
blob: 143699df907e82f1c595980a99d6f6f448e479a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; Git ui.

(import-macros {: autocmds} :macros)

(local dependencies [:nvim-lua/plenary.nvim])

(local keys [{1 :<leader>gm 2 :<cmd>Neogit<cr> :desc :Neogit}])

(λ init []
  (autocmds
    [:FileType
     {:pattern [:NeogitStatus
                :NeogitCommitMessage
                :NeogitNotification
                :NeogitCommitView]
      :command "setlocal spell!"}]))

(local opts {:integrations {:diffview true :telescope true}})

{1 :TimUntersberger/neogit :cmd :Neogit : opts : init : dependencies : keys}