mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update lualine conf
This commit is contained in:
parent
752dbcbe2d
commit
4d497ec8a7
@ -1 +0,0 @@
|
||||
require('lualine').setup()
|
||||
37
lua/config/statusline.lua
Normal file
37
lua/config/statusline.lua
Normal file
@ -0,0 +1,37 @@
|
||||
local function spell()
|
||||
if vim.o.spell then
|
||||
return "[SPELL]"
|
||||
end
|
||||
|
||||
return ""
|
||||
end
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = "auto",
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
disabled_filetypes = {},
|
||||
always_divide_middle = true,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch", "diff", },
|
||||
lualine_c = { spell, "filename" },
|
||||
lualine_x = { "encoding", "fileformat", "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location", { "diagnostics", sources = { "nvim_lsp" } }},
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = { "location" },
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
tabline = {},
|
||||
extensions = {},
|
||||
})
|
||||
|
||||
@ -124,7 +124,7 @@ require("packer").startup({
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim', event = 'VimEnter',
|
||||
requires = {'kyazdani42/nvim-web-devicons', opt = true},
|
||||
config = [[require('config.lualine')]]
|
||||
config = [[require('config.statusline')]]
|
||||
}
|
||||
|
||||
use({ "akinsho/bufferline.nvim", event = "VimEnter", config = [[require('config.bufferline')]] })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user