1
0
Fork 0

nvim: neogit config improvements

This commit is contained in:
Daniel Kempkens 2023-12-29 22:45:27 +01:00
parent daa3fc51a1
commit 650dcd7b40
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 25 additions and 6 deletions

View file

@ -24,10 +24,17 @@
{:condition (fn []
(conditions.buffer_matches {:filetype [:TelescopePrompt]}))
1 (ns.custom-mode :Telescope :black :green)})
(local neogit-statusline
{:condition (fn []
(conditions.buffer_matches {:filetype [:NeogitStatus]}))
1 (ns.custom-mode :Neogit :black :purple)})
(local neogit-statusline {:condition (fn []
(conditions.buffer_matches {:filetype [:NeogitBranchDescription
:NeogitCommitMessage
:NeogitCommitView
:NeogitLogView
:NeogitMergeMessage
:NeogitPopup
:NeogitStatus
:NeogitTagMessage]}))
1 (ns.custom-mode :Neogit :black :purple)
2 ns.git})
(local shell-statusline
{:condition #(not= vim.b.nifoc_shell_mode nil)
1 ns.vi-mode

View file

@ -1,2 +1,14 @@
(let [neogit (require :neogit)]
(neogit.setup {}))
(let [neogit (require :neogit)
augroup (vim.api.nvim_create_augroup :NifocNeogit {:clear true})
aucmd vim.api.nvim_create_autocmd]
(neogit.setup {})
(aucmd :FileType {:pattern [:NeogitBranchDescription
:NeogitCommitMessage
:NeogitCommitView
:NeogitLogView
:NeogitMergeMessage
:NeogitPopup
:NeogitStatus
:NeogitTagMessage]
:callback #(set vim.b.toggle_line_style 0)
:group augroup}))