diff options
Diffstat (limited to 'fnl/plugins/editor/neogit.fnl')
-rw-r--r-- | fnl/plugins/editor/neogit.fnl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fnl/plugins/editor/neogit.fnl b/fnl/plugins/editor/neogit.fnl index af3a738..5a3c5e3 100644 --- a/fnl/plugins/editor/neogit.fnl +++ b/fnl/plugins/editor/neogit.fnl @@ -1,9 +1,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}]} |