aboutsummaryrefslogtreecommitdiffstats
path: root/neovim/.config/nvim/lua/plugins/statusline.lua
blob: b93b34c359a0e8581df281009cd677a10cb7449b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
return {
  "bling/vim-airline",
  lazy = false,
  dependencies = {
    "vim-airline/vim-airline-themes",
    "edkolev/tmuxline.vim",
  },
  init = function()
    -- On arch linux install the following:
    -- otf-powerline-symbols-git
    -- powerline-fonts-git
    vim.g.airline_powerline_fonts = 1
    vim.g["airline#extensions#tabline#enabled"] = 1

    -- vim.g dict reads return a copy, not a live reference, so the nested
    -- field has to be set via a local table and reassigned.
    local symbols = vim.g.airline_symbols or {}
    symbols.space = "\u{a0}"
    vim.g.airline_symbols = symbols

    vim.opt.laststatus = 2
  end,
}