From d474c779523c512e3bc91bc5ce7bc87cafc6372b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 23 Sep 2023 22:05:37 +0200 Subject: Move user and auto cmds to plugins --- fnl/plugins/editor/neogit.fnl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'fnl/plugins/editor/neogit.fnl') 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 :gm 2 :Neogit :desc :Neogit}]} -- cgit v1.2.3-70-g09d2