nvim/lua/plugins/lualine.lua
Evie Litherland-Smith 01ea9bc452 Add flake to return home-manager config for neovim
Update lualine config

If on nix, auto install all treesitter parsers
2023-07-24 10:42:10 +01:00

38 lines
1.4 KiB
Lua

return {
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons", "folke/tokyonight.nvim" },
event = { "VeryLazy" },
config = true,
opts = function()
return {
options = {
theme = "tokyonight",
component_separators = "|",
section_separators = { left = "", right = "" },
globalstatus = true,
},
sections = {
lualine_a = { "mode" },
lualine_b = { "filename", { "branch", icon = "󰊢" }, "diff" },
lualine_c = {
{
"diagnostics",
symbols = {
error = require("ui.lsp_icons").Error,
warn = require("ui.lsp_icons").Warn,
info = require("ui.lsp_icons").Info,
hint = require("ui.lsp_icons").Hint,
},
},
},
lualine_x = { "filetype", "fileformat", "encoding" },
lualine_y = { "progress" },
lualine_z = { "selectioncount", "location" },
},
tabline = {},
winbar = {},
extensions = { "aerial", "fzf", "lazy", "neo-tree", "toggleterm", "trouble" },
}
end,
}