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

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

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

(local auto-cmds [[:FileType
                   {:pattern [:NeogitStatus
                              :NeogitCommitMessage
                              :NeogitNotification
                              :NeogitCommitView]
                    :command "setlocal spell!"}]])

(λ init []
  (let [{: create-auto-cmds} (require :util.cmds)]
    (create-auto-cmds auto-cmds)))

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

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