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.

53 lines
1.3 KiB

2 years ago
  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. theme = "catppuccin",
  10. --component_separators = { left = '', right = '' },
  11. --component_separators = { left = '', right = '' },
  12. --section_separators = { left = '', right = '' },
  13. --section_separators = { left = '', right = '' },
  14. section_separators = { left = '', right = '' },
  15. component_separators = { left = '', right = '' },
  16. disabled_filetypes = {
  17. statusline = {},
  18. winbar = {},
  19. },
  20. ignore_focus = {},
  21. always_divide_middle = true,
  22. globalstatus = false,
  23. refresh = {
  24. statusline = 1000,
  25. tabline = 1000,
  26. winbar = 1000,
  27. }
  28. },
  29. sections = {
  30. lualine_a = { 'mode' },
  31. lualine_b = { 'branch', 'diff', 'diagnostics' },
  32. lualine_c = { 'filename' },
  33. lualine_x = { 'encoding', 'fileformat', 'filetype' },
  34. lualine_y = { getWords },
  35. lualine_z = { [[require'lsp-status'.status()]] }
  36. },
  37. inactive_sections = {
  38. lualine_a = {},
  39. lualine_b = {},
  40. lualine_c = { 'filename' },
  41. lualine_x = { 'location' },
  42. lualine_y = {},
  43. lualine_z = {}
  44. },
  45. tabline = {},
  46. winbar = {},
  47. inactive_winbar = {},
  48. extensions = {}
  49. }