nvim: use lualine

This commit is contained in:
tastytea 2022-08-18 17:40:37 +02:00
parent 4647ded04d
commit 5e638c410b
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 19 additions and 0 deletions

View File

@ -84,6 +84,7 @@ require('packer').startup(function(use)
'https://github.com/kyazdani42/nvim-tree.lua',
tag = '*'
}
use { 'https://github.com/nvim-lualine/lualine.nvim' }
-- coding
use {

View File

@ -59,3 +59,21 @@ require("nvim-tree").setup({
})
map('n', '<F9>', require("nvim-tree.api").tree.toggle, 'Open nvim-tree')
map('i', '<F9>', require("nvim-tree.api").tree.toggle, 'Open nvim-tree')
vim.o.showmode = false
require('lualine').setup({
options = {
icons_enabled = true,
component_separators = {},
section_separators = {},
extensions = {}
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', { 'diagnostics', icons_enabled = false } },
lualine_c = { { 'filename', path = 1 } },
lualine_x = { { 'filetype', icons_enabled = false } },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
})