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 []
|
{:condition (fn []
|
||||||
(conditions.buffer_matches {:filetype [:TelescopePrompt]}))
|
(conditions.buffer_matches {:filetype [:TelescopePrompt]}))
|
||||||
1 (ns.custom-mode :Telescope :black :green)})
|
1 (ns.custom-mode :Telescope :black :green)})
|
||||||
(local neogit-statusline
|
(local neogit-statusline {:condition (fn []
|
||||||
{:condition (fn []
|
(conditions.buffer_matches {:filetype [:NeogitBranchDescription
|
||||||
(conditions.buffer_matches {:filetype [:NeogitStatus]}))
|
:NeogitCommitMessage
|
||||||
1 (ns.custom-mode :Neogit :black :purple)})
|
:NeogitCommitView
|
||||||
|
:NeogitLogView
|
||||||
|
:NeogitMergeMessage
|
||||||
|
:NeogitPopup
|
||||||
|
:NeogitStatus
|
||||||
|
:NeogitTagMessage]}))
|
||||||
|
1 (ns.custom-mode :Neogit :black :purple)
|
||||||
|
2 ns.git})
|
||||||
(local shell-statusline
|
(local shell-statusline
|
||||||
{:condition #(not= vim.b.nifoc_shell_mode nil)
|
{:condition #(not= vim.b.nifoc_shell_mode nil)
|
||||||
1 ns.vi-mode
|
1 ns.vi-mode
|
||||||
|
|
|
@ -1,2 +1,14 @@
|
||||||
(let [neogit (require :neogit)]
|
(let [neogit (require :neogit)
|
||||||
(neogit.setup {}))
|
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