Neovim configs for 2023. Hopefully they last.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. local function getWords()
  2. return tostring(vim.fn.wordcount().words) .. " W"
  3. end
  4. require('lualine').setup {
  5. options = {
  6. icons_enabled = true,
  7. --theme = 'auto',
  8. theme = 'onedark',
  9. --component_separators = { left = '', right = '' },
  10. --component_separators = { left = '', right = '' },
  11. --section_separators = { left = '', right = '' },
  12. --section_separators = { left = '', right = '' },
  13. section_separators = { left = '', right = '' },
  14. component_separators = { left = '', right = '' },
  15. disabled_filetypes = {
  16. statusline = {},
  17. winbar = {},
  18. },
  19. ignore_focus = {},
  20. always_divide_middle = true,
  21. globalstatus = false,
  22. refresh = {
  23. statusline = 1000,
  24. tabline = 1000,
  25. winbar = 1000,
  26. }
  27. },
  28. sections = {
  29. lualine_a = { 'mode' },
  30. lualine_b = { 'branch', 'diff', 'diagnostics' },
  31. lualine_c = { 'filename' },
  32. lualine_x = { 'encoding', 'fileformat', 'filetype' },
  33. lualine_y = { getWords },
  34. lualine_z = { [[require'lsp-status'.status()]] }
  35. },
  36. inactive_sections = {
  37. lualine_a = {},
  38. lualine_b = {},
  39. lualine_c = { 'filename' },
  40. lualine_x = { 'location' },
  41. lualine_y = {},
  42. lualine_z = {}
  43. },
  44. tabline = {},
  45. winbar = {},
  46. inactive_winbar = {},
  47. extensions = {}
  48. }