diff options
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/statusline.lua')
| -rw-r--r-- | neovim/.config/nvim/lua/plugins/statusline.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/plugins/statusline.lua b/neovim/.config/nvim/lua/plugins/statusline.lua new file mode 100644 index 0000000..b93b34c --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/statusline.lua | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | return { | ||
| 2 | "bling/vim-airline", | ||
| 3 | lazy = false, | ||
| 4 | dependencies = { | ||
| 5 | "vim-airline/vim-airline-themes", | ||
| 6 | "edkolev/tmuxline.vim", | ||
| 7 | }, | ||
| 8 | init = function() | ||
| 9 | -- On arch linux install the following: | ||
| 10 | -- otf-powerline-symbols-git | ||
| 11 | -- powerline-fonts-git | ||
| 12 | vim.g.airline_powerline_fonts = 1 | ||
| 13 | vim.g["airline#extensions#tabline#enabled"] = 1 | ||
| 14 | |||
| 15 | -- vim.g dict reads return a copy, not a live reference, so the nested | ||
| 16 | -- field has to be set via a local table and reassigned. | ||
| 17 | local symbols = vim.g.airline_symbols or {} | ||
| 18 | symbols.space = "\u{a0}" | ||
| 19 | vim.g.airline_symbols = symbols | ||
| 20 | |||
| 21 | vim.opt.laststatus = 2 | ||
| 22 | end, | ||
| 23 | } | ||
