summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-07-10 23:01:58 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-07-10 23:01:58 -0400
commite2eca2a163976c6d274983250af44d8a386ae414 (patch)
treec701d222f90cc927db8822a3e4803b7637df6f30
parentde2aaa7fd5a90a81de8d216232bb39830ff6041d (diff)
Hex color highlight & orgmode icons
-rw-r--r--lua/plugins/colors.lua9
-rw-r--r--lua/plugins/orgmode.lua22
2 files changed, 26 insertions, 5 deletions
diff --git a/lua/plugins/colors.lua b/lua/plugins/colors.lua
new file mode 100644
index 0000000..c971101
--- /dev/null
+++ b/lua/plugins/colors.lua
@@ -0,0 +1,9 @@
+return {
+ { -- Easy color conversions (rgb, hex, hsl, ...)
+ "amadeus/vim-convert-color-to"
+ },
+ { -- Highlight hex/rgb colors inside code
+ "norcalli/nvim-colorizer.lua",
+ config = true,
+ },
+}
diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua
index fa1281a..fccd341 100644
--- a/lua/plugins/orgmode.lua
+++ b/lua/plugins/orgmode.lua
@@ -5,14 +5,26 @@ return {
"akinsho/org-bullets.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
- },
- config = true,
- },
- {
+ },
+ config = function()
+ local bullets = require('org-bullets')
+ bullets.setup {
+ symbols = {
+ -- list items
+ list = "",
+ checkboxes = {
+ done = { "", "OrgDone" }, -- or 
+ todo = { "", "OrgTodo" }, -- or 
+ half = { "", "OrgHalf" }, -- or 
+ },
+ },
+ }
+ end,
+ }, { -- Format tables easily
"dhruvasagar/vim-table-mode",
},
},
- event = 'VeryLazy',
+ event = { "BufEnter", "BufNewFile" },
ft = { 'org' },
config = function()
-- This is bound to org-modern: