diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-01-05 01:50:20 +0100 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-01-05 01:50:20 +0100 |
| commit | 2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch) | |
| tree | 48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/neogit.fnl | |
| parent | 16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff) | |
Refactor
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} |