utils.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. }