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

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

(fn init []
  (let [cmds (require :util.cmds)]
    (cmds.create-auto-cmds auto-cmds)))

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

{1 :TimUntersberger/neogit
 :cmd :Neogit
 : opts
 : init
 :dependencies [:nvim-lua/plenary.nvim]
 :keys [{1 :<leader>gm 2 :<cmd>Neogit<cr> :desc :Neogit}]}