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.

55 lines
1.4 KiB

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