add plugin lualine-ex to display lsp info

This commit is contained in:
leafee98 2023-12-14 22:36:59 +08:00
parent e001ecc980
commit 3e49c39e53

View file

@ -43,14 +43,16 @@ return {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
enabled = custom.full_feature, enabled = custom.full_feature,
dependencies = { dependencies = {
"nvim-tree/nvim-web-devicons" "nvim-tree/nvim-web-devicons",
"dokwork/lualine-ex",
"nvim-lua/plenary.nvim",
}, },
main = "lualine", main = "lualine",
event = "VeryLazy", event = "VeryLazy",
opts = { opts = {
sections = { sections = {
lualine_a = { "mode" }, lualine_a = { "mode" },
lualine_b = { "branch", "diff", "diagnostics" }, lualine_b = { "branch", "diff", "ex.lsp.single", "diagnostics" },
lualine_c = { "filename" }, lualine_c = { "filename" },
lualine_x = { "encoding" , "fileformat", "filetype" }, lualine_x = { "encoding" , "fileformat", "filetype" },
lualine_y = { "progress" }, lualine_y = { "progress" },