style.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. float = { source = 'always', },
  33. virtual_text = false,
  34. update_in_insert = true
  35. })
  36. end
  37. }, {
  38. dir = "../custom/jxdash",
  39. name = "jxdash",
  40. dependencies = { "jonathandarker" },
  41. enabled = true,
  42. lazy = false,
  43. config = function()
  44. require("jxdash").setup()
  45. end
  46. }, {
  47. "norcalli/nvim-colorizer.lua",
  48. enabled = true,
  49. lazy = false,
  50. config = function()
  51. require("colorizer").setup({ "*" }, {
  52. mode = "background",
  53. RGB = true,
  54. RRGGBB = true,
  55. RRGGBBAA = true,
  56. names = false,
  57. rgb_fn = false,
  58. hsl_fn = false,
  59. css = false,
  60. css_fn = false
  61. })
  62. end
  63. }, {
  64. "lukas-reineke/virt-column.nvim",
  65. enabled = true,
  66. lazy = false,
  67. config = function()
  68. vim.opt.colorcolumn = tostring(80 + 1)
  69. local cc_group = vim.api.nvim_create_augroup("colorcolumn",
  70. { clear = true })
  71. local filetype_colorcolumn_map = {
  72. python = 88,
  73. kotlin = 100,
  74. julia = 92
  75. }
  76. vim.api.nvim_create_autocmd({ "FileType" }, {
  77. pattern = { "*" },
  78. group = cc_group,
  79. callback = function(event)
  80. local filetype = vim.bo[event.buf].filetype
  81. local colorcolumn = filetype_colorcolumn_map[filetype]
  82. if colorcolumn == nil then
  83. colorcolumn = 80
  84. end
  85. for _, w in pairs(vim.api.nvim_list_wins()) do
  86. if vim.api.nvim_win_get_buf(w) == event.buf then
  87. vim.wo[w].colorcolumn = tostring(colorcolumn + 1)
  88. end
  89. end
  90. end
  91. })
  92. require("virt-column").setup({ char = "⁚" })
  93. end
  94. }
  95. }