switch to lua line

This commit is contained in:
Jidbo 2022-01-24 22:34:22 +01:00 committed by saibotk
parent 8913b11668
commit 6c98f469b0
Signed by: saibotk
GPG key ID: 67585F0065E261D5
4 changed files with 30 additions and 19 deletions

View file

@ -13,3 +13,4 @@ require('telescopeconfig')
require('autocompletion') require('autocompletion')
require('treesitterconfig') require('treesitterconfig')
require('filemanager') require('filemanager')
require('statusline')

View file

@ -58,7 +58,7 @@ Plug 'jidbo/sonokai'
Plug 'norcalli/nvim-colorizer.lua' Plug 'norcalli/nvim-colorizer.lua'
-- powerline -- powerline
Plug 'vim-airline/vim-airline' Plug 'nvim-lualine/lualine.nvim'
-- LANGUAGES -- LANGUAGES
-- =================== -- ===================

28
nvim/lua/statusline.lua Normal file
View file

@ -0,0 +1,28 @@
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'sonokai',
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
disabled_filetypes = {},
always_divide_middle = true,
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', {'diagnostics', sources = {'nvim_lsp'}}},
lualine_c = {{'filename', path=1}},
lualine_x = {'filetype'},
lualine_y = {},
lualine_z = {'%l/%L:%c'}
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {'filename'},
lualine_x = {'location'},
lualine_y = {},
lualine_z = {}
},
tabline = {},
extensions = {'nvim-tree', 'fugitive'}
}

View file

@ -1,25 +1,7 @@
" PLUGIN OPTIONS " PLUGIN OPTIONS
" AIRLINE SETUP
" =========================
" sections
let g:airline_section_y = ""
let g:airline_section_z = "%l/%L:%c"
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
" other stuff
let g:airline_theme='luna'
let g:airline_powerline_fonts = 1
let g:airline_inactive_collapse=1
let g:airline_skip_empty_sections = 1
let g:airline#extensions#whitespace#enabled = 0
let g:airline#extensions#wordcount#enabled = 0
let g:airline#extensions#keymap#enabled = 0
set ttimeoutlen=50
" GITGUTTER SETUP " GITGUTTER SETUP
" ========================= " =========================
let g:gitgutter_sign_added = '∙' let g:gitgutter_sign_added = '∙'
let g:gitgutter_sign_modified = '∙' let g:gitgutter_sign_modified = '∙'
let g:gitgutter_sign_removed = '∙' let g:gitgutter_sign_removed = '∙'