utils.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. return {
  2. {
  3. -- <S> to add ", (... Around selected text
  4. "kylechui/nvim-surround",
  5. version = "*", -- Use for stability; omit to use `main` branch for the latest features
  6. event = "VeryLazy",
  7. config = function()
  8. require("nvim-surround").setup({
  9. -- Configuration here, or leave empty to use defaults
  10. })
  11. end,
  12. },
  13. {
  14. -- Automatically add brackets by pairs
  15. "jiangmiao/auto-pairs",
  16. lazy = false,
  17. },
  18. {
  19. "farmergreg/vim-lastplace",
  20. },
  21. {
  22. "nvim-tree/nvim-web-devicons",
  23. config = function()
  24. require("nvim-web-devicons").setup({
  25. -- your personnal icons can go here (to override)
  26. -- you can specify color or cterm_color instead of specifying both of them
  27. -- DevIcon will be appended to `name`
  28. override = {
  29. zsh = {
  30. icon = "",
  31. color = "#428850",
  32. cterm_color = "65",
  33. name = "Zsh",
  34. },
  35. },
  36. -- globally enable different highlight colors per icon (default to true)
  37. -- if set to false all icons will have the default icon's color
  38. color_icons = true,
  39. -- globally enable default icons (default to false)
  40. -- will get overriden by `get_icons` option
  41. default = true,
  42. -- globally enable "strict" selection of icons - icon will be looked up in
  43. -- different tables, first by filename, and if not found by extension; this
  44. -- prevents cases when file doesn't have any extension but still gets some icon
  45. -- because its name happened to match some extension (default to false)
  46. strict = true,
  47. -- same as `override` but specifically for overrides by filename
  48. -- takes effect when `strict` is true
  49. override_by_filename = {
  50. [".gitignore"] = {
  51. icon = "",
  52. color = "#f1502f",
  53. name = "Gitignore",
  54. },
  55. },
  56. -- same as `override` but specifically for overrides by extension
  57. -- takes effect when `strict` is true
  58. override_by_extension = {
  59. ["log"] = {
  60. icon = "",
  61. color = "#81e043",
  62. name = "Log",
  63. },
  64. },
  65. -- same as `override` but specifically for operating system
  66. -- takes effect when `strict` is true
  67. override_by_operating_system = {
  68. ["apple"] = {
  69. icon = "",
  70. color = "#A2AAAD",
  71. cterm_color = "248",
  72. name = "Apple",
  73. },
  74. },
  75. })
  76. -- code
  77. end,
  78. },
  79. {
  80. "j-hui/fidget.nvim",
  81. opts = {
  82. -- options
  83. },
  84. },
  85. {
  86. "stevearc/dressing.nvim",
  87. opts = {},
  88. },
  89. { "eandrju/cellular-automaton.nvim" },
  90. {
  91. "lewis6991/satellite.nvim",
  92. config = function()
  93. require("satellite").setup({
  94. current_only = false,
  95. winblend = 50,
  96. zindex = 40,
  97. excluded_filetypes = {},
  98. width = 2,
  99. handlers = {
  100. cursor = {
  101. enable = true,
  102. -- Supports any number of symbols
  103. symbols = { "⎺", "⎻", "⎼", "⎽" },
  104. -- symbols = { '⎻', '⎼' }
  105. -- Highlights:
  106. -- - SatelliteCursor (default links to NonText
  107. },
  108. search = {
  109. enable = true,
  110. -- Highlights:
  111. -- - SatelliteSearch (default links to Search)
  112. -- - SatelliteSearchCurrent (default links to SearchCurrent)
  113. },
  114. diagnostic = {
  115. enable = true,
  116. signs = { "-", "=", "≡" },
  117. min_severity = vim.diagnostic.severity.HINT,
  118. -- Highlights:
  119. -- - SatelliteDiagnosticError (default links to DiagnosticError)
  120. -- - SatelliteDiagnosticWarn (default links to DiagnosticWarn)
  121. -- - SatelliteDiagnosticInfo (default links to DiagnosticInfo)
  122. -- - SatelliteDiagnosticHint (default links to DiagnosticHint)
  123. },
  124. gitsigns = {
  125. enable = true,
  126. signs = { -- can only be a single character (multibyte is okay)
  127. add = "│",
  128. change = "│",
  129. delete = "-",
  130. },
  131. -- Highlights:
  132. -- SatelliteGitSignsAdd (default links to GitSignsAdd)
  133. -- SatelliteGitSignsChange (default links to GitSignsChange)
  134. -- SatelliteGitSignsDelete (default links to GitSignsDelete)
  135. },
  136. marks = {
  137. enable = true,
  138. show_builtins = false, -- shows the builtin marks like [ ] < >
  139. key = "m",
  140. -- Highlights:
  141. -- SatelliteMark (default links to Normal)
  142. },
  143. quickfix = {
  144. signs = { "-", "=", "≡" },
  145. -- Highlights:
  146. -- SatelliteQuickfix (default links to WarningMsg)
  147. },
  148. },
  149. })
  150. end,
  151. },
  152. }