style.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. return {
  2. {
  3. dir = "../custom/jonathandarker",
  4. name = "jonathandarker",
  5. lazy = false,
  6. enabled = true,
  7. config = function()
  8. vim.cmd.colorscheme("jonathandarker")
  9. vim.defer_fn(function()
  10. vim.schedule(function()
  11. vim.cmd.colorscheme("jonathandarker")
  12. end)
  13. end, 100)
  14. vim.opt.list = true
  15. vim.opt.fillchars = "horiz:-," .. "horizup:-," .. "horizdown:-," ..
  16. "vert:¦," .. "verthoriz:¦," ..
  17. "vertleft:¦," .. "vertright:¦," ..
  18. "eob:⠀"
  19. vim.opt.listchars = "extends:›," .. "precedes:‹," ..
  20. "tab:\\ ," .. "nbsp:·," .. "trail:·," ..
  21. "space:·"
  22. end
  23. }, {
  24. dir = "../custom/status-beast",
  25. name = "status-beast",
  26. dependencies = { "lewis6991/gitsigns.nvim", "bit-browser" },
  27. enabled = true,
  28. lazy = false,
  29. config = function()
  30. require("status-beast").setup()
  31. vim.diagnostic.config({
  32. virtual_text = false,
  33. update_in_insert = true
  34. })
  35. end
  36. }, {
  37. dir = "../custom/jxdash",
  38. name = "jxdash",
  39. enabled = true,
  40. lazy = false,
  41. config = function()
  42. require("jxdash").setup()
  43. end
  44. }, {
  45. "norcalli/nvim-colorizer.lua",
  46. enabled = true,
  47. lazy = false,
  48. config = function()
  49. require("colorizer").setup({ "*" }, {
  50. mode = "background",
  51. RGB = true,
  52. RRGGBB = true,
  53. RRGGBBAA = true,
  54. names = false,
  55. rgb_fn = false,
  56. hsl_fn = false,
  57. css = false,
  58. css_fn = false
  59. })
  60. end
  61. }, {
  62. "lukas-reineke/virt-column.nvim",
  63. enabled = true,
  64. lazy = false,
  65. config = function()
  66. vim.opt.colorcolumn = tostring(80 + 1)
  67. local cc_group = vim.api.nvim_create_augroup("colorcolumn",
  68. { clear = true })
  69. local filetype_colorcolumn_map = {
  70. python = 88,
  71. kotlin = 100,
  72. julia = 92
  73. }
  74. vim.api.nvim_create_autocmd({ "FileType" }, {
  75. pattern = { "*" },
  76. group = cc_group,
  77. callback = function(event)
  78. local filetype = vim.bo[event.buf].filetype
  79. local colorcolumn = filetype_colorcolumn_map[filetype]
  80. if colorcolumn == nil then
  81. colorcolumn = 80
  82. end
  83. for _, w in pairs(vim.api.nvim_list_wins()) do
  84. if vim.api.nvim_win_get_buf(w) == event.buf then
  85. vim.wo[w].colorcolumn = tostring(colorcolumn + 1)
  86. end
  87. end
  88. end
  89. })
  90. require("virt-column").setup({ char = "⁚" })
  91. end
  92. }
  93. }