nvim: use lualine
This commit is contained in:
parent
4647ded04d
commit
5e638c410b
@ -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 {
|
||||
|
@ -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' }
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user