nvim config
1
2return {
3 {'nvim-lualine/lualine.nvim',
4 dependencies = { 'nvim-tree/nvim-web-devicons',lazy=true},
5 config = function()
6 require('lualine').setup {
7 options = {
8 icons_enabled = true,
9 theme = 'auto',
10 --component_separators = { left = '', right = ''},
11 --section_separators = { left = '', right = ''},
12 component_separators = { left = '', right = ''},
13 section_separators = { left = '', right = ''},
14 disabled_filetypes = {
15 statusline = {},
16 winbar = {},
17 },
18 ignore_focus = {},
19 always_divide_middle = true,
20 globalstatus = false,
21 refresh = {
22 statusline = 1000,
23 tabline = 1000,
24 winbar = 1000,
25 }
26 },
27 sections = {
28 lualine_a = {'mode'},
29 lualine_b = {'branch', 'diff', 'diagnostics'},
30 lualine_c = {'filename'},
31 lualine_x = {"require'lsp-status'.status()",'encoding', 'fileformat', 'filetype'},
32 lualine_y = {'progress'},
33 lualine_z = {'location'}
34 },
35 inactive_sections = {
36 lualine_a = {},
37 lualine_b = {},
38 lualine_c = {'filename'},
39 lualine_x = {"require'lsp-status'.status()", 'location'},
40 lualine_y = {},
41 lualine_z = {}
42 },
43 tabline = {},
44 winbar = {},
45 inactive_winbar = {},
46 extensions = {}
47 }
48 end
49 },
50 -- Webicons config
51 --
52 {'nvim-web-devicons',
53 config = function()
54 require('nvim-web-devicons').setup {
55 -- your personnal icons can go here (to override)
56 -- you can specify color or cterm_color instead of specifying both of them
57 -- DevIcon will be appended to `name`
58 override = {
59 zsh = {
60 icon = "",
61 color = "#428850",
62 cterm_color = "65",
63 name = "Zsh"
64 }
65 };
66 -- globally enable different highlight colors per icon (default to true)
67 -- if set to false all icons will have the default icon's color
68 color_icons = true;
69 -- globally enable default icons (default to false)
70 -- will get overriden by `get_icons` option
71 default = true;
72 -- globally enable "strict" selection of icons - icon will be looked up in
73 -- different tables, first by filename, and if not found by extension; this
74 -- prevents cases when file doesn't have any extension but still gets some icon
75 -- because its name happened to match some extension (default to false)
76 strict = true;
77 -- same as `override` but specifically for overrides by filename
78 -- takes effect when `strict` is true
79 override_by_filename = {
80 [".gitignore"] = {
81 icon = "",
82 color = "#f1502f",
83 name = "Gitignore"
84 }
85 };
86 -- same as `override` but specifically for overrides by extension
87 -- takes effect when `strict` is true
88 override_by_extension = {
89 ["log"] = {
90 icon = "",
91 color = "#81e043",
92 name = "Log"
93 }
94 };
95 }
96 end},
97}