diff options
Diffstat (limited to 'fnl/plugins/neogit.fnl')
-rw-r--r-- | fnl/plugins/neogit.fnl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fnl/plugins/neogit.fnl b/fnl/plugins/neogit.fnl new file mode 100644 index 0000000..a84c9dd --- /dev/null +++ b/fnl/plugins/neogit.fnl @@ -0,0 +1,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!"}]]) + +(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 : keys} |