ui.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. -- Telescope
  2. require("telescope").setup()
  3. -- Gitsigns
  4. require('gitsigns').setup()
  5. -- Neogit
  6. require('neogit').setup()
  7. -- Bufferline
  8. require("bufferline").setup({
  9. highlights = require("catppuccin.groups.integrations.bufferline").get(),
  10. options = {
  11. mode = "buffers",
  12. separator_style = "thin",
  13. diagnostics = "nvim_lsp",
  14. offsets = {
  15. {
  16. filetype = "NvimTree",
  17. highlight = "Directory",
  18. text_align = "left",
  19. },
  20. },
  21. },
  22. })
  23. -- Indent Blankline
  24. vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
  25. vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
  26. vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
  27. vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
  28. vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
  29. vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
  30. require("indent_blankline").setup({
  31. use_treesitter = true,
  32. show_current_context = true,
  33. show_current_context_start = true,
  34. space_char_blankline = " ",
  35. char_highlight_list = {
  36. "IndentBlanklineIndent1",
  37. "IndentBlanklineIndent2",
  38. "IndentBlanklineIndent3",
  39. "IndentBlanklineIndent4",
  40. "IndentBlanklineIndent5",
  41. "IndentBlanklineIndent6",
  42. },
  43. })
  44. -- Dashboard
  45. local db = require("dashboard")
  46. db.custom_header = {
  47. "",
  48. "⣽⣿⢣⣿⡟⣽⣿⣿⠃⣲⣿⣿⣸⣷⡻⡇⣿⣿⢇⣿⣿⣿⣏⣎⣸⣦⣠⡞⣾⢧⣿⣿",
  49. "⣿⡏⣿⡿⢰⣿⣿⡏⣼⣿⣿⡏⠙⣿⣿⣤⡿⣿⢸⣿⣿⢟⡞⣰⣿⣿⡟⣹⢯⣿⣿⣿",
  50. "⡿⢹⣿⠇⣿⣿⣿⣸⣿⣿⣿⣿⣦⡈⠻⣿⣿⣮⣿⣿⣯⣏⣼⣿⠿⠏⣰⡅⢸⣿⣿⣿",
  51. "⡀⣼⣿⢰⣿⣿⣇⣿⣿⡿⠛⠛⠛⠛⠄⣘⣿⣿⣿⣿⣿⣿⣶⣿⠿⠛⢾⡇⢸⣿⣿⣿",
  52. "⠄⣿⡟⢸⣿⣿⢻⣿⣿⣷⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⡋⠉⣠⣴⣾⣿⡇⣸⣿⣿⡏",
  53. "⠄⣿⡇⢸⣿⣿⢸⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣄⠘⢿⣿⠏⠄⣿⣿⣿⣹",
  54. "⠄⢻⡇⢸⣿⣿⠸⣿⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣦⣼⠃⠄⢰⣿⣿⢯⣿",
  55. "⠄⢸⣿⢸⣿⣿⡄⠙⢿⣿⣿⡿⠁⠄⠄⠄⠄⠉⣿⣿⣿⣿⣿⣿⡏⠄⢀⣾⣿⢯⣿⣿",
  56. "⣾⣸⣿⠄⣿⣿⡇⠄⠄⠙⢿⣀⠄⠄⠄⠄⠄⣰⣿⣿⣿⣿⣿⠟⠄⠄⣼⡿⢫⣻⣿⣿",
  57. "⣿⣿⣿⠄⢸⣿⣿⠄⠄⠄⠄⠙⠿⣷⣶⣤⣴⣿⠿⠿⠛⠉⠄⠄⢸⣿⣿⣿⣿⠃⠄⣴ ",
  58. "",
  59. }
  60. db.custom_center = {
  61. {
  62. icon = " ",
  63. desc = "Recently latest session ",
  64. shortcut = "SPC s l",
  65. action = "SessionLoad",
  66. },
  67. {
  68. icon = " ",
  69. desc = "Recently opened files ",
  70. action = "DashboardFindHistory",
  71. shortcut = "SPC f h",
  72. },
  73. {
  74. icon = " ",
  75. desc = "Find File ",
  76. action = "Telescope find_files find_command=rg,--hidden,--files",
  77. shortcut = "SPC f f",
  78. },
  79. {
  80. icon = " ",
  81. desc = "File Browser ",
  82. action = "Telescope file_browser",
  83. shortcut = "SPC f b",
  84. },
  85. {
  86. icon = " ",
  87. desc = "Find word ",
  88. action = "Telescope live_grep",
  89. shortcut = "SPC f w",
  90. },
  91. }
  92. db.custom_footer = {
  93. "Ludovico Sforza 🚀",
  94. "SFORZA FAMIGLIA",
  95. }
  96. -- Lualine
  97. local lualine = require("lualine")
  98. lualine.setup({
  99. options = {
  100. icons_enabled = true,
  101. theme = "catppuccin",
  102. component_separators = { left = "", right = "" },
  103. section_separators = { left = "", right = "" },
  104. disabled_filetypes = {
  105. statusline = {},
  106. winbar = {},
  107. },
  108. ignore_focus = {},
  109. always_divide_middle = true,
  110. globalstatus = false,
  111. refresh = {
  112. statusline = 1000,
  113. tabline = 1000,
  114. winbar = 1000,
  115. },
  116. },
  117. sections = {
  118. lualine_a = { "mode" },
  119. lualine_b = { "branch", "diff", "diagnostics" },
  120. lualine_c = { "filename" },
  121. lualine_x = { "encoding", "fileformat", "filetype" },
  122. lualine_y = { "progress" },
  123. lualine_z = { "location" },
  124. },
  125. inactive_sections = {
  126. lualine_a = {},
  127. lualine_b = {},
  128. lualine_c = { "filename" },
  129. lualine_x = { "location" },
  130. lualine_y = {},
  131. lualine_z = {},
  132. },
  133. tabline = {},
  134. winbar = {},
  135. inactive_winbar = {},
  136. extensions = { 'nvim-tree' },
  137. })
  138. -- Nvim-Treesitter
  139. require("nvim-treesitter.configs").setup({
  140. highlight = {
  141. enable = true,
  142. additional_vim_regex_highlighting = false,
  143. },
  144. rainbow = {
  145. enable = true,
  146. extended_mode = true,
  147. },
  148. autotag = {
  149. enable = true,
  150. },
  151. context_commentstring = {
  152. enable = true,
  153. },
  154. })
  155. require("nvim-tree").setup({})
  156. -- Presence ( Discord Rich Presence )
  157. -- require("presence"):setup(
  158. -- {
  159. -- -- General options
  160. -- auto_update = true,
  161. -- neovim_image_text = "The One True Text Editor",
  162. -- main_image = "neovim",
  163. -- client_id = "793271441293967371",
  164. -- log_level = nil,
  165. -- debounce_timeout = 10,
  166. -- enable_line_number = false,
  167. -- blacklist = {},
  168. -- buttons = true,
  169. -- file_assets = {},
  170. -- show_time = true,
  171. -- -- Rich Presence text options
  172. -- editing_text = "Editing %s",
  173. -- file_explorer_text = "Browsing %s",
  174. -- git_commit_text = "Committing changes",
  175. -- plugin_manager_text = "Managing plugins",
  176. -- reading_text = "Reading %s",
  177. -- workspace_text = "Working on %s",
  178. -- line_number_text = "Line %s out of %s"
  179. -- }
  180. -- )
  181. -- Nvim-Web-DevIcons
  182. require("nvim-web-devicons").setup({
  183. color_icons = true,
  184. default = true,
  185. })