summaryrefslogtreecommitdiff
path: root/fnl/plugins/neogit.fnl
blob: b8ee757ae32461bc89423743c81ede9ce9b0a15d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;; 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}