nvim: neogit config improvements
This commit is contained in:
parent
daa3fc51a1
commit
650dcd7b40
2 changed files with 25 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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}))
|
||||
|
|
Loading…
Reference in a new issue