add lualine to nvim

This commit is contained in:
Jozef Steinhübl 2023-08-21 15:40:26 +02:00
parent 617fea026b
commit e1f9499a38
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,40 @@
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'auto',
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
}
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff', 'diagnostics'},
lualine_c = {'filename'},
lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_y = {'progress'},
lualine_z = {'location'}
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {'filename'},
lualine_x = {'location'},
lualine_y = {},
lualine_z = {}
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}

View file

@ -27,6 +27,11 @@ return require("packer").startup(function(use)
use "andweeb/presence.nvim" use "andweeb/presence.nvim"
use "wakatime/vim-wakatime" use "wakatime/vim-wakatime"
use {
'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
}
use { use {
"VonHeikemen/lsp-zero.nvim", "VonHeikemen/lsp-zero.nvim",
branch = "v2.x", branch = "v2.x",

View file

@ -99,6 +99,11 @@ _G.packer_plugins = {
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
url = "https://github.com/VonHeikemen/lsp-zero.nvim" url = "https://github.com/VonHeikemen/lsp-zero.nvim"
}, },
["lualine.nvim"] = {
loaded = true,
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/lualine.nvim",
url = "https://github.com/nvim-lualine/lualine.nvim"
},
["mason-lspconfig.nvim"] = { ["mason-lspconfig.nvim"] = {
loaded = true, loaded = true,
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
@ -124,6 +129,12 @@ _G.packer_plugins = {
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/nvim-treesitter", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter" url = "https://github.com/nvim-treesitter/nvim-treesitter"
}, },
["nvim-web-devicons"] = {
loaded = false,
needs_bufread = false,
path = "/home/hyro/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons",
url = "https://github.com/nvim-tree/nvim-web-devicons"
},
["packer.nvim"] = { ["packer.nvim"] = {
loaded = true, loaded = true,
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/packer.nvim", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/packer.nvim",