• Stars
    star
    279
  • Rank 146,995 (Top 3 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

vim statusline like spacemacs

spaceline.vim

The best vim statusline plugin.

new

Features

  • Fast load speed
  • More separator support
  • Highly customizable
  • More beautiful than other statusline plugins
  • Special color scheme
  • File icon syntax highlight
  • Scroll bar

Install

  • Easy installed with a plugin manager like vim-plug
Plug 'glepnir/spaceline.vim'
" Use the icon plugin for better behavior
Plug 'ryanoasis/vim-devicons' or 'kyazdani42/nvim-web-devicons' --neovim only

Options

  • spaceline provide some separator groups, the default group is arrow
let g:spaceline_seperate_style = 'arrow'
group Screen shot
none none
arrow arrow
arrow-fade arrow-fade
curve curve
slant slant
slant-fade slant-fade
slant-cons slant-cons
  • Use this setting to change the spaceline colorscheme, now builtin colorscheme space,one, nord, dracula
let g:spaceline_colorscheme = 'space'
  • g:spaceline_custom_vim_status custom vim status display. Default is
 {"n": "๐Ÿ… ","V":"๐Ÿ…ฅ ","v":"๐Ÿ…ฅ ","\<C-v>": "๐Ÿ…ฅ ","i":"๐Ÿ…˜ ","R":"๐Ÿ…ก ","s":"๐Ÿ…ข ","t":"๐Ÿ…ฃ ","c":"๐Ÿ…’ ","!":"SE"}
  • g:spaceline_custom_buffer_number custom buffer number display value is list

  • g:spaceline_diagnostic_tool set your diagnostic plugin. Default is coc, other values are: nvim_lsp, ale

  • g:spaceline_diagnostic_errorsign set the error sign. Default is โ—

  • g:spaceline_diagnostic_warnsign set the warn sign. Default is โ—

  • g:spaceline_diagnostic_oksign set the ok sign. Default is ๏’ก

  • g:spaceline_git_branch_icon set the git branch icon default is empty

  • g:spaceline_custom_diff_icon custom diff icon. Default is

 ['๏‘—','๏‘™','๏‘˜']
  • g:spaceline_diff_tool set the git diff tool default is coc. Other values are: git-gutter, which requires the vim-gitgutter plugin; vim-signify, which requires the vim-signify plugin.

  • g:spaceline_function_icon set the function icon

  • g:spaceline_scroll_bar_chars set the scroll bar chars. Some alternatives:

" one char wide solid vertical bar This is default
let g:spaceline_scroll_chars = [
  \  ' ', 'โ–', 'โ–‚', 'โ–ƒ', 'โ–„', 'โ–…', 'โ–†', 'โ–‡', 'โ–ˆ'
  \  ]

" two char wide fade-in blocks
let g:spaceline_scroll_chars = [
  \ '  ', 'โ–‘ ', 'โ–’ ', 'โ–“ ', 'โ–ˆ ', 'โ–ˆโ–‘', 'โ–ˆโ–’', 'โ–ˆโ–“', 'โ–ˆโ–ˆ'
  \ ]

" three char wide solid horizontal bar
let g:spaceline_scroll_chars = [
  \ '   ', 'โ–  ', 'โ–Ž  ', 'โ–  ', 'โ–Œ  ',
  \ 'โ–‹  ', 'โ–Š  ', 'โ–‰  ', 'โ–ˆ  ', 'โ–ˆโ– ',
  \ 'โ–ˆโ–Ž ', 'โ–ˆโ– ', 'โ–ˆโ–Œ ', 'โ–ˆโ–‹ ', 'โ–ˆโ–Š ',
  \ 'โ–ˆโ–‰ ', 'โ–ˆโ–ˆ ', 'โ–ˆโ–ˆโ–', 'โ–ˆโ–ˆโ–Ž', 'โ–ˆโ–ˆโ–',
  \ 'โ–ˆโ–ˆโ–Œ', 'โ–ˆโ–ˆโ–‹', 'โ–ˆโ–ˆโ–Š', 'โ–ˆโ–ˆโ–‰', 'โ–ˆโ–ˆโ–ˆ'
  \ ]

let g:spaceline_scroll_chars = ['โŽบ', 'โŽป', 'โ”€', 'โŽผ', 'โŽฝ'] " on macOS

let g:spaceline_scroll_chars = ['โŽบ', 'โŽป', 'โŽผ', 'โŽฝ', 'โŽฏ'] " on Linux

Goyo Support

  • check out thinkvim usage

FAQ

  • Why do the symbols look weird in my vim?

Make sure you have installed nerdfont font from https://www.nerdfonts.com/, different fonts may be inconsistent in the performance of symbols. If you are using iTerm2 on macOS, you can set a different font for symbols.

Another solution is to use kitty terminal. Kitty has built-in symbol font support and supports both Mac and Linux.

License

MIT

More Repositories

1

lspsaga.nvim

neovim lsp plugin
Lua
2,484
star
2

dashboard-nvim

vim dashboard
Lua
1,337
star
3

nvim-lua-guide-zh

https://github.com/nanotee/nvim-lua-guide chinese version
1,165
star
4

galaxyline.nvim

neovim statusline plugin written in lua
Lua
807
star
5

nvim

neovim configuration written in lua
Lua
726
star
6

dope

a modern structure neovim config template write in lua
Lua
286
star
7

zephyr-nvim

A dark neovim colorscheme written in lua
Lua
272
star
8

oceanic-material

Oceanic Material Colorscheme on Vim/NeoVim
Vim Script
174
star
9

indent-guides.nvim

Lua
149
star
10

GoDoc-CN

Goๆ ‡ๅ‡†ๅบ“็š„ไธญๆ–‡็‰ˆDashๆ–‡ๆกฃ
HTML
133
star
11

jarvim

Generate a module vim configruation like a VIM PRO
Go
112
star
12

leaseapp

goๅผ€ๅ‘็š„ๅŽๅฐAPI
Go
102
star
13

template.nvim

Quickly insert templates into file
Lua
90
star
14

coman.nvim

neovim plugin for comment and annotation
Lua
57
star
15

prodoc.nvim

a neovim comment and annotation plugin using coroutine
Lua
48
star
16

mcc.nvim

neovim macgic char
Lua
35
star
17

DailyTasks

๐ŸŒผ A simple go web app without framework
Go
30
star
18

dotfiles

my personal dotfiles on mac or arch
Shell
25
star
19

golang-advance

Go ๆ•ฐๆฎ็ป“ๆž„ไธŽ็ฎ—ๆณ• ่ฎพ่ฎกๆจกๅผ
Go
23
star
20

mutchar.nvim

a neovim plugin that change type character to other characters accroding rules and filter.
Lua
19
star
21

smartinput.nvim

Lua
15
star
22

hlsearch.nvim

auto remove search highlight and rehighlight when using n or N
Lua
14
star
23

porcelain.nvim

personal colorscheme
Lua
13
star
24

lspmeta.nvim

Go
11
star
25

whiskyline.nvim

whisky line a neovim statusline using coroutine and cache just for fun.
Lua
10
star
26

dashboard-imageview

work for dashboard-nvim
Rust
9
star
27

nerdicons.nvim

get the nerdfont icons inside neovim
Lua
8
star
28

dbsession.nvim

a simple small powerful session for neovim
Lua
8
star
29

go-react-jwt

Golang with React Jwt.
TypeScript
6
star
30

ziglearn-cn

zig programming language tutorial
Zig
6
star
31

glepnir.github.io

Personal Blog
HTML
4
star
32

glepnir

4
star
33

watchdog

Go
3
star
34

fuckcd

2
star
35

GoDDDExample

golang in ddd example
Go
2
star
36

umijs3-crud-example

antd umijs3 crud example
TypeScript
1
star
37

hugo-xshell

HTML
1
star
38

snowflake

Twitter snowflake by go
Go
1
star
39

zapecho

zap logger for echo web framework
Go
1
star