Skip to content

Commit

Permalink
Merge pull request #44 from xiantang/dev_dev
Browse files Browse the repository at this point in the history
Dev dev
  • Loading branch information
xiantang authored Aug 15, 2023
2 parents c6374b8 + ab85a76 commit b222eed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 1 addition & 10 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,4 @@ let g:currentmode={
\ 'c' : 'Command ',
\}

function! GitBranch()
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
endfunction

function! StatuslineGit()
let l:branchname = GitBranch()
return strlen(l:branchname) > 0?' '.l:branchname.' ':''
endfunction
set statusline=%{toupper(g:currentmode[mode()])}%f%{StatuslineGit()}\ %h%m%r\ %=%-14.(%l,%c%V%)\ %y\ %P

set statusline=%{toupper(g:currentmode[mode()])}%f\ %h%m%r\ %=%-14.(%l,%c%V%)\ %y\ %P
8 changes: 8 additions & 0 deletions lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ return {
event = "VeryLazy",
config = function()
require("scrollbar").setup({
handlers = {
cursor = true,
diagnostic = false,
gitsigns = false, -- Requires gitsigns
handle = true,
search = false, -- Requires hlslens
ale = false, -- Requires ALE
},
set_highlights = true,
})
end,
Expand Down

0 comments on commit b222eed

Please sign in to comment.